summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-06-07 09:28:53 (GMT)
committerGitHub <noreply@github.com>2022-06-07 09:28:53 (GMT)
commitf012df706cf3a9e63625b8166fe3f419855e9a94 (patch)
tree79e77365bf7a0deda813c0036ee0ed3bde2390c5 /Include/internal
parent75ceae05c11461beda65e6170b67b0b42fd55cd0 (diff)
downloadcpython-f012df706cf3a9e63625b8166fe3f419855e9a94.zip
cpython-f012df706cf3a9e63625b8166fe3f419855e9a94.tar.gz
cpython-f012df706cf3a9e63625b8166fe3f419855e9a94.tar.bz2
Shrink the LOAD_METHOD cache by one codeunit. (#93537)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_code.h1
-rw-r--r--Include/internal/pycore_opcode.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h
index 9d33ed7..c181543 100644
--- a/Include/internal/pycore_code.h
+++ b/Include/internal/pycore_code.h
@@ -65,7 +65,6 @@ typedef struct {
typedef struct {
_Py_CODEUNIT counter;
_Py_CODEUNIT type_version[2];
- _Py_CODEUNIT dict_offset;
_Py_CODEUNIT keys_version[2];
_Py_CODEUNIT descr[4];
} _PyLoadMethodCache;
diff --git a/Include/internal/pycore_opcode.h b/Include/internal/pycore_opcode.h
index e5d948d..e254537 100644
--- a/Include/internal/pycore_opcode.h
+++ b/Include/internal/pycore_opcode.h
@@ -49,7 +49,7 @@ const uint8_t _PyOpcode_Caches[256] = {
[COMPARE_OP] = 2,
[LOAD_GLOBAL] = 5,
[BINARY_OP] = 1,
- [LOAD_METHOD] = 10,
+ [LOAD_METHOD] = 9,
[CALL] = 4,
};