[pypy-dev] Re: psyco in Python was: Minimal Python project
Thomas Fanslau
tfanslau at gmx.de
Fri Jan 17 20:13:11 CET 2003
Michael Hudson wrote:
>>2. I have looked again at the code generators of the optimizing C compiler I
>>wrote about 10 years ago. I can find no instance where knowing the value
>>of an operand, rather than just its type, would produce better code.
>>
>>
>
>? Surely in compiling
>
>if (x < 10) {
> ...
>} else {
> ...
>}
>
>
And don't forget the obvious replacement of a multiply by some shifts,
so multiply by 5 can be replaced by a copy, a right shift 2 places and a
add instead of a costly multiply ...
--tf
More information about the Pypy-dev
mailing list