[issue1346238] A constant folding optimization pass for the AST
Alexander Belopolsky
report at bugs.python.org
Fri Mar 28 19:55:57 CET 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Raymond wrote in his recent response on issue2499 (a patch that adds
unary '+' and 'not' folding to peephole optimizer):
"""
More importantly, we decided that the peepholer is the wrong place to
do much of this work. Most of the peepholer is going to be migrated
up the chain, after the AST is generated, but before the opcodes are
generated. That is a faster, more reliable, and more general
approach.
""" (See msg64618.)
This looks like the relevant patch. I would like to take a look at the
patch, but since it is more than 2 years old, maybe someone has an
updated version. Please advise.
----------
nosy: +belopolsky
type: -> performance
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1346238>
_____________________________________
More information about the Python-bugs-list
mailing list