New submission from Mark Shannon <m...@hotpy.org>:
Currently we perform various bytecode improvements as a pass on the code objects after generating the code object. This requires parsing the bytecode to find instructions, recreating the CFG, and rewriting the line number table. If we perform the optimizations directly on the CFG we can avoid all that additional work. This would save hundreds of lines of code and avoid coupling the optimization to the line number table format. ---------- assignee: Mark.Shannon messages: 373811 nosy: Mark.Shannon priority: normal severity: normal stage: needs patch status: open title: Perform "peephole" optimization directly on control-flow graph. type: performance _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41323> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com