[Patches] [ python-Patches-512256 ] ceval micro optimizations
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 12 Feb 2002 12:13:36 -0800
Patches item #512256, was opened at 2002-02-02 16:23
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=512256&group_id=5470
Category: Core (C code)
Group: None
Status: Open
Resolution: None
>Priority: 6
Submitted By: Neil Schemenauer (nascheme)
Assigned to: Tim Peters (tim_one)
Summary: ceval micro optimizations
Initial Comment:
These are good for a 5% speed increase according to
pystone and pybench. Changes:
- move common instructions to top of switch stmt
- simplify SET_LINENO block by calling call_trace
instead of inlining it
- skip "things_to_do" block for a few ops that
don't actually do any work (like SET_LINENO
and POP_TOP).
- tweak if statements so that GCC generates better
code
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2002-02-12 12:13
Message:
Logged In: YES
user_id=31435
Boosted priority.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=512256&group_id=5470