New-style classes slower than old-style classes? (Was: n-body problem at shootout.alioth.debian.org)
noway at sorry.com
Sat Oct 7 20:15:08 EDT 2006
Peter Maas wrote:
>> Did you try using an old-style class instead of a new-style class?
> The original program has an old style class, changing it to a new
> style class increases run time by 25% (version is 2.4.3 btw).
Ah yes. Years ago when I first saw this test it was still using new-style
Anyway, this is a bug on its own I believe. I don't think new-style classes are
meant to be 25% slower than old-style classes. Can any guru clarify this?
More information about the Python-list