]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with
authorJeffrey Yasskin <jyasskin@gmail.com>
Sat, 28 Feb 2009 19:03:21 +0000 (19:03 +0000)
committerJeffrey Yasskin <jyasskin@gmail.com>
Sat, 28 Feb 2009 19:03:21 +0000 (19:03 +0000)
commit68d68520061a5a4aa3437f8c74ba383b2da50280
treeaaade0afac9b9369b58c5642e2635fa319f61c02
parentde28d6841e60d75ce7644ca527448f73376ec48e
Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with
POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing
a POP_TOP on each conditional and sometimes allows the peephole optimizer to
skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
Doc/library/dis.rst
Include/opcode.h
Lib/compiler/pyassem.py
Lib/compiler/pycodegen.py
Lib/opcode.py
Lib/test/test_dis.py
Lib/test/test_peepholer.py
Python/ceval.c
Python/compile.c
Python/import.c
Python/peephole.c