[pypy-dev] Small optimization

Carl Friedrich Bolz cfbolz at gmx.de
Wed Oct 24 16:28:59 CEST 2007

Christian Tismer wrote:
>> Isn't this the optimization that Michael already tried? See 
>> objspace/std/objspace.py line 65. command line option is 
>> --objspace-std-withsmallint
>> I turned out to not be worth it in many cases.
> But it is known as a useful special case in the CPython interpreter loop.

Well, read our D7.1 report for details. One reason why it didn't help 
could be that our multimethod implementation is very good already, so 
special cases don't help it (but make the generic case slower).


Carl Friedrich

More information about the Pypy-dev mailing list