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 Mark.Shannon
Recipients Mark.Shannon, benjamin.peterson, brett.cannon, methane, ncoghlan, pitrou, rhettinger, serhiy.storchaka, yselivanov
Date 2018-04-22.23:42:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1524440532.8.0.682650639539.issue33325@psf.upfronthosting.co.za>
In-reply-to
Content
There seems to be an implicit assumption here that fewer bytecodes is better. But that isn't always the case.

Do you have evidence that the sequence 
0 LOAD_CONST               5 ((('a', 'b', 'c'), 3, 2, 1))
2 UNPACK_SEQUENCE          4
is actually faster than
0 LOAD_CONST               0 (1)
2 LOAD_CONST               1 (2)
4 LOAD_CONST               2 (3)
6 LOAD_CONST               3 (('a', 'b', 'c'))
?

The second sequence has more bytecodes, but the first has to create a new object.

I think you ought to be careful using the word "optimize" unless the output is incontrovertibly superior.
History
Date User Action Args
2018-04-22 23:42:12Mark.Shannonsetrecipients: + Mark.Shannon, brett.cannon, rhettinger, ncoghlan, pitrou, benjamin.peterson, methane, serhiy.storchaka, yselivanov
2018-04-22 23:42:12Mark.Shannonsetmessageid: <1524440532.8.0.682650639539.issue33325@psf.upfronthosting.co.za>
2018-04-22 23:42:12Mark.Shannonlinkissue33325 messages
2018-04-22 23:42:12Mark.Shannoncreate