[New-bugs-announce] [issue46702] Specialize UNPACK_SEQUENCE
report at bugs.python.org
Wed Feb 9 19:35:53 EST 2022
New submission from Brandt Bucher <brandtbucher at gmail.com>:
UNPACK_SEQUENCE already has fast paths for tuples and lists, which make up (literally) 99% of unpackings in the benchmark suite. What's more, two-element tuples make up about two-thirds of all unpackings (though I actually suspect it's even higher, since the unpack_sequence benchmark is definitely skewing the results towards 10-element lists and tuples).
These specializations are trivial to implement and result in a solid 1% improvement overall.
components: Interpreter Core
nosy: Mark.Shannon, brandtbucher
stage: patch review
title: Specialize UNPACK_SEQUENCE
versions: Python 3.11
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce