[Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer) (original) (raw)
Steven D'Aprano steve at pearwood.info
Sat Mar 12 07:49:36 CET 2011
- Previous message: [Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer)
- Next message: [Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Cesare Di Mauro wrote:
Also, optimizations can be done not only for numbers, but even for tuples, lists, dictionaries, and... slices (pag. 22). See pages 21-24 of this<http://wpython2.googlecode.com/files/Beyond%20Bytecode%20-%20A%20Wordcode-based%20Python.pdf>
For the record, constant-folding, and the lack of it, does seem to come up in users' requests. Whether they need constant-folding or not, it seems that some people have come to expect it. E.g. see this recent thread on python-list:
http://code.activestate.com/lists/python-list/596506/
-- Steven
- Previous message: [Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer)
- Next message: [Python-Dev] Suggest reverting today's checkin (recursive constant folding in the peephole optimizer)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]