[Python-Dev] 2.5a2 try/except slow-down: Convert to type?
Sean Reifschneider
jafo at tummy.com
Wed May 24 12:56:48 CEST 2006
On Wed, May 24, 2006 at 11:36:52AM +0100, Michael Hudson wrote:
>Could it just be that instantiating instances of new-style classes is
>slower than instantiating instances of old-style classes? There's not
>anything in what you've posted to suggest that exceptions are involved
>directly.
Sorry, I should have mentioned that. Yes, instantiating new-style classes
is slower than old-style, but only by about 10%. The slow-down for
try/except is more like 60%. So, it's not just the new versus old
difference. It's much, much more than that.
Thanks,
Sean
--
The Law of Software Development and Envelopment at MIT: Every program
in development at MIT expands until it can read mail.
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability
More information about the Python-Dev
mailing list