[issue9155] Reserve COMPARE_OP for rich comparisons

Demur Rumed report at bugs.python.org
Mon Jul 5 03:03:01 CEST 2010

Demur Rumed <junkmute at hotmail.com> added the comment:

I've attached the original patch without whitespace, and am also including modifications to this portion of the interpreter which remove ROT_FOUR, DUP_TOPX while adding ROT_THREE_TWO, DUP_TOP_TWO, DUP_ROT_THREE. I've seen a 5% speed increase with timeit.Timer("a[0]+=0","a=[0]")

Also modified the optimizer to reject code with a size over 32767 instead of 32760. That's most likely a useless modification which may be preferred ignored

Added file: http://bugs.python.org/file17858/cmpoprotdup.diff

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list