➜

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.

作者 serhiy.storchaka
收信人 Demur Rumed, serhiy.storchaka
日期 2016-05-27.20:40:40
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1464381640.82.0.0689379791356.issue27140@psf.upfronthosting.co.za>
In-reply-to
内容
BUILD_MAP, BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL need pushing key-value pairs on the stack. If keys and values are not constant, this is correct order of evaluating them. But if keys are constant (very common case), the order of pushing them doesn't affect semantic. We can pack them in constant tuple and push on the stack by one instruction.

I think there would be a benefit from adding new opcodes that take a sequence of values and a tuple of keys instead of a sequence of key-value pairs.

New MAKE_FUNCTION (issue27095) and new CALL_FUNCTION (issue yet not opened) could have a benefit.
历史
日期 用户 动作 参数
2016-05-27 20:40:40serhiy.storchaka修改recipients: + serhiy.storchaka, Demur Rumed
2016-05-27 20:40:40serhiy.storchaka修改messageid: <1464381640.82.0.0689379791356.issue27140@psf.upfronthosting.co.za>
2016-05-27 20:40:40serhiy.storchaka链接issue27140 messages
2016-05-27 20:40:40serhiy.storchaka创建