Raymond Hettinger f606f87b31 Introduced macros for a simple opcode prediction protocol.
Applied to common cases:
    COMPARE_OP is often followed by a JUMP_IF.
    JUMP_IF is usually followed by POP_TOP.

Shows improved timings on PyStone, PyBench, and specific tests
using timeit.py:
    python timeit.py -s "x=1" "if x==1: pass"
    python timeit.py -s "x=1" "if x==2: pass"
    python timeit.py -s "x=1" "if x: pass"
    python timeit.py -s "x=100" "while x!=1: x-=1"

Potential future candidates:
    GET_ITER predicts FOR_ITER
    FOR_ITER predicts STORE_FAST or UNPACK_SEQUENCE

Also, applied missing goto fast_next_opcode to DUP_TOPX.
2003-03-16 03:11:04 +00:00
..
2003-02-12 16:57:47 +00:00
2002-06-11 06:22:31 +00:00
2002-01-23 15:51:12 +00:00
2003-02-24 15:33:31 +00:00
2002-08-15 14:59:02 +00:00
2002-12-30 22:08:05 +00:00
2002-07-30 11:44:44 +00:00
2002-06-11 06:22:31 +00:00