summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorCarl Meyer <carl@oddbird.net>2023-05-11 14:08:13 (GMT)
committerGitHub <noreply@github.com>2023-05-11 14:08:13 (GMT)
commit77262458fe3fe9f3f0266bbf578675a906b1e353 (patch)
treeb066d678cfdba47c64e82ed49ecb73a1d1d8a701 /Lib/importlib
parentddc0e70a326180d90a45dfd8abeded9c9f911217 (diff)
downloadcpython-77262458fe3fe9f3f0266bbf578675a906b1e353.zip
cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.gz
cpython-77262458fe3fe9f3f0266bbf578675a906b1e353.tar.bz2
gh-87729: improve hit rate of LOAD_SUPER_ATTR specialization (#104270)
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index d4a1593..3ca5a1a 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -443,6 +443,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.12b1 3527 (Add LOAD_SUPER_ATTR)
# Python 3.12b1 3528 (Add LOAD_SUPER_ATTR_METHOD specialization)
# Python 3.12b1 3529 (Inline list/dict/set comprehensions)
+# Python 3.12b1 3530 (Shrink the LOAD_SUPER_ATTR caches)
# Python 3.13 will start with 3550
@@ -459,7 +460,7 @@ _code_type = type(_write_atomic.__code__)
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
# in PC/launcher.c must also be updated.
-MAGIC_NUMBER = (3529).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3530).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c