[Patches] [ python-Patches-512256 ] ceval micro optimizations

noreply@sourceforge.net noreply@sourceforge.net
Sat, 02 Feb 2002 16:23: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: 3
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


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=512256&group_id=5470