[Patches] [ python-Patches-918462 ] simple "is" speedup
SourceForge.net
noreply at sourceforge.net
Wed Mar 17 20:50:49 EST 2004
Patches item #918462, was opened at 2004-03-17 19:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=918462&group_id=5470
Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Raymond Hettinger (rhettinger)
Summary: simple "is" speedup
Initial Comment:
All this "is" vs "==" discussion led me to look at ceval.c.
The attached patch seems to speed up "is" and "is not"
comparisons - saving a function call to do a simple pointer
comparison for non-integer arguments.
The test suite passes, but it's been quite awhile since I
messed around with the interpreter code, so I thought I
ought to have another pair of eyeballs check it out...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=918462&group_id=5470
More information about the Patches
mailing list