[Patches] [ python-Patches-721425 ] Enhanced bytecode optimizer
SourceForge.net
noreply@sourceforge.net
Mon, 14 Apr 2003 17:18:12 -0700
Patches item #721425, was opened at 2003-04-14 16:29
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=721425&group_id=5470
Category: Core (C code)
Group: Python 2.3
>Status: Pending
>Resolution: Later
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: Enhanced bytecode optimizer
Initial Comment:
Enhanced the bytecode optimizer to mark basic
blocks, apply more transformations, and to fix-up
jump targets when the code size gets shorter.
Old transformations no longer require filler codes.
New transformations:
RETURN_VALUE LOAD_CONST x RETURN_VALUE --
> RETURN_VALUE
BUILD_SEQN 3 UNPACK_SEQN 3 --> ROT3 ROT2
not x in y --> x not in y
not x not in y --> x in y
not x is y --> x is not y
not x is not y --> x is y
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-04-14 19:18
Message:
Logged In: YES
user_id=80475
Hmm, I'm going to take this one off the table for while.
Right now, it gives too little extra benefit for all the
additional code. Also, it looks like removing a bytes
means that the line numbering logic needs to be adjusted.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=721425&group_id=5470