]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF patch #707257: Improve code generation
authorRaymond Hettinger <python@rcn.com>
Wed, 26 Mar 2003 01:07:54 +0000 (01:07 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 26 Mar 2003 01:07:54 +0000 (01:07 +0000)
commitf6f575ae6fc4b58f8735b6aebaa422d48bedcef4
treeebbdb1739641b823f80570b2806dace3adc7db9c
parent590fe02ebdc2ec11347441ae31e71d2d6cd52ad3
SF patch #707257: Improve code generation

Adds a single function to improve generated bytecode.  Has a single line
attachment point, so it is completely de-coupled from both the compiler
and ceval.c.

Makes three simple transforms that do not require a basic block analysis
or re-ordering of code.  Gives improved timings on pystone, pybench,
and any code using either "while 1" or "x,y=y,x".
Python/compile.c