[issue41323] Perform "peephole" optimization directly on control-flow graph.
Raymond Hettinger
report at bugs.python.org
Fri Jul 17 15:00:00 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
+1 This looks like a nice improvement. I've long wanted the optimizations to be moved upstream.
At the time the peephole logic was first written, operating directly on the code object was the only option that kept optimizations separate from the core compiler logic. But disassembling and reassembling bytecode was always awkward — it is nice to no longer have to do so.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41323>
_______________________________________
More information about the Python-bugs-list
mailing list