[Patches] [ python-Patches-506436 ] GETCONST/GETNAME/GETNAMEV speedup
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 21 Jan 2002 05:39:03 -0800
Patches item #506436, was opened at 2002-01-21 05:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=506436&group_id=5470
Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Tim Peters (tim_one)
Summary: GETCONST/GETNAME/GETNAMEV speedup
Initial Comment:
The attached patch redefines the GETCONST, GETNAME &
GETNAMEV
macros to do the following:
* access the code object's consts
and names through
local variables instead of the long chain from
f
* use access macros to index the tuples and get
the C string
names
The code appears correct, and I've had no trouble
with
it. It only provides the most trivial of
improvement on pystone
(around 1% when I see
anything), but it's all those little things
that
add up, right?
Skip
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=506436&group_id=5470