[pypy-dev] Small optimization

Carl Friedrich Bolz cfbolz at gmx.de
Wed Oct 24 15:44:16 CEST 2007

Antonio Cuni wrote:
 > Jean-Paul Calderone wrote:
 >> Does this break (by ignoring) custom __add__ implementations on int
 >> subclasses?
 > uh, right! :-/
 > Well, that means that we should check for the exact classes/python type
 > instead for subclasses, but I think the optimization is still worth of.

Isn't this the optimization that Michael already tried? See 
objspace/std/objspace.py line 65. command line option is 

I turned out to not be worth it in many cases.


Carl Friedrich

More information about the Pypy-dev mailing list