A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/065151.html below:

[Python-Dev] 2.5a2 try/except slow-down: Convert to type?

[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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4