From 036fead695a9a1e1082992d16ab46bca1cd61a25 Mon Sep 17 00:00:00 2001 From: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> Date: Fri, 19 Nov 2021 05:30:37 -0500 Subject: bpo-45609: Specialize STORE_SUBSCR (GH-29242) * Specialize STORE_SUBSCR for list[int], and dict[object] * Adds _PyDict_SetItem_Take2 which consumes references to the key and values. --- Lib/opcode.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/opcode.py') diff --git a/Lib/opcode.py b/Lib/opcode.py index 1df192bb12..3603bb422b 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -238,6 +238,9 @@ _specialized_instructions = [ "BINARY_SUBSCR_LIST_INT", "BINARY_SUBSCR_TUPLE_INT", "BINARY_SUBSCR_DICT", + "STORE_SUBSCR_ADAPTIVE", + "STORE_SUBSCR_LIST_INT", + "STORE_SUBSCR_DICT", "CALL_FUNCTION_ADAPTIVE", "CALL_FUNCTION_BUILTIN_O", "CALL_FUNCTION_BUILTIN_FAST", -- cgit v1.2.1