Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 28406:733729261c41 legacy-trunk
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".
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Wed, 26 Mar 2003 01:07:54 +0000 |
| parents | 5ee29f1364f3 |
| children | 6c6b321d1d10 |
