[issue1346238] A constant folding optimization pass for the AST
Dave Malcolm
report at bugs.python.org
Sat Nov 6 01:10:15 CET 2010
Dave Malcolm <dmalcolm at redhat.com> added the comment:
Another optimization idea: detect local dictionaries that are only ever used in non-mutating ways, and convert them to constants, rather than rebuilding the dict from scratch each time.
See e.g. htmlparser.py:adjustSVGAttributes etc within the bm_html5lib benchmark (though this doesn't seem to be ported to py3k yet)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1346238>
_______________________________________
More information about the Python-bugs-list
mailing list