1. 16 Mar, 2003 3 commits
    • Raymond Hettinger's avatar
      Eliminate data dependency in predict macro. · 7dc52212
      Raymond Hettinger authored
      Added two predictions:
        GET_ITER --> FOR_ITER
        FOR_ITER --> STORE_FAST or UNPACK_SEQUENCE
      
      Improves timings on pybench and timeit.py. Pystone results are neutral.
      7dc52212
    • Raymond Hettinger's avatar
      Fix comment and whitespace. · ac207292
      Raymond Hettinger authored
      ac207292
    • Raymond Hettinger's avatar
      Introduced macros for a simple opcode prediction protocol. · f606f87b
      Raymond Hettinger authored
      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.
      f606f87b
  2. 15 Mar, 2003 2 commits
  3. 14 Mar, 2003 4 commits
  4. 13 Mar, 2003 1 commit
  5. 12 Mar, 2003 7 commits
  6. 11 Mar, 2003 18 commits
  7. 10 Mar, 2003 5 commits