[issue21074] Too aggressive constant folding

Nick Coghlan report at bugs.python.org
Sun Mar 30 08:04:57 CEST 2014


Nick Coghlan added the comment:

I'm marking this as a duplicate of issue 11549 (which is about building out an AST optimiser), mostly because I don't think this kind of parameter tweaking makes sense with the current peephole optimiser.

With a more sophisticated Python implemented optimiser earlier in the pipeline, it becomes more reasonable to make smarter decisions about space/speed trade-offs when dealing with sequence repetition, and even just really large integer values.

----------
nosy: +ncoghlan
resolution:  -> duplicate
status: open -> closed
superseder:  -> Build-out an AST optimizer, moving some functionality out of the peephole optimizer

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21074>
_______________________________________


More information about the Python-bugs-list mailing list