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 alex
Recipients alex
Date 2009-05-27.23:19:49
SpamBayes Score 7.1373876e-08
Marked as misclassified No
Message-id <1243466391.88.0.68447044966.issue6133@psf.upfronthosting.co.za>
In-reply-to
Content
Basically whenever you have a LOAD_CONST opcode, follwed by a LOAD_ATTR
you can replace both with a single LOAD_CONST.  This optimizes things
like ", ".join or "{} {}".format (in my totally unscientific byte code
hackery it's about a 30% speedup on the loading the function).  This can
be done in the peephole optimizer.

I'll try to work up a patch.
History
Date User Action Args
2009-05-27 23:19:52alexsetrecipients: + alex
2009-05-27 23:19:51alexsetmessageid: <1243466391.88.0.68447044966.issue6133@psf.upfronthosting.co.za>
2009-05-27 23:19:50alexlinkissue6133 messages
2009-05-27 23:19:49alexcreate