[issue4134] Peephole optimization: returning a temp
Raymond Hettinger
report at bugs.python.org
Thu Oct 16 23:32:46 CEST 2008
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Sorry, am not excited by this one. It is not a common idiom in most
code that I've ever seen and it never occurs in an inner-loop. Besides
the load_fast/store_fast combination are so *very* fast that any real
code would not see a worthwhile speedup.
When the AST optimizer gets built-out, I expect that we'll get many of
these sort of optimizations for free. In the meantime, this one just
isn't worth adding complexity to the peepholer.
----------
assignee: -> rhettinger
nosy: +rhettinger
priority: -> low
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4134>
_______________________________________
More information about the Python-bugs-list
mailing list