This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients methane, rhettinger, serhiy.storchaka, vstinner
Date 2017-12-16.09:51:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513417899.13.0.213398074469.issue32344@psf.upfronthosting.co.za>
In-reply-to
Content
Tuples represented in AST already are optimized at AST level. But there are tuples created at compilation stage (see the code emitting BUILD_TUPLE). Inada's PR 4879 simplifies the peephole optimizer.

I tried to move this optimization at the compiler level, but it is more complex change. Making this change can have additional advantages, but is just more complex. I think at end all remaining peephole optimizations will be moved to the compiler, so that it will generate already optimized code. Many optimizations had already moved, and I have yet few unfinished patches.
History
Date User Action Args
2017-12-16 09:51:39serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, methane
2017-12-16 09:51:39serhiy.storchakasetmessageid: <1513417899.13.0.213398074469.issue32344@psf.upfronthosting.co.za>
2017-12-16 09:51:39serhiy.storchakalinkissue32344 messages
2017-12-16 09:51:38serhiy.storchakacreate