New submission from Brandt Bucher <brandtbuc...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue46702> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com