[New-bugs-announce] [issue46702] Specialize UNPACK_SEQUENCE

Brandt Bucher 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.

----------
assignee: brandtbucher
components: Interpreter Core
messages: 412960
nosy: Mark.Shannon, brandtbucher
priority: normal
severity: normal
stage: patch review
status: open
title: Specialize UNPACK_SEQUENCE
type: performance
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46702>
_______________________________________


More information about the New-bugs-announce mailing list