summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-03-29 22:53:30 (GMT)
committerGitHub <noreply@github.com>2023-03-29 22:53:30 (GMT)
commit121057aa3600c4d4d392539aeb79e1b09fd5659d (patch)
treeed1b99c697ad052eb38e38c2da2d07bfe2bf0838 /Include/internal
parente647dbaded898e5399d01d06771c1b42b5631be8 (diff)
downloadcpython-121057aa3600c4d4d392539aeb79e1b09fd5659d.zip
cpython-121057aa3600c4d4d392539aeb79e1b09fd5659d.tar.gz
cpython-121057aa3600c4d4d392539aeb79e1b09fd5659d.tar.bz2
GH-89987: Shrink the BINARY_SUBSCR caches (GH-103022)
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_code.h2
-rw-r--r--Include/internal/pycore_opcode.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h
index 3359dfd..7f3148a 100644
--- a/Include/internal/pycore_code.h
+++ b/Include/internal/pycore_code.h
@@ -47,8 +47,6 @@ typedef struct {
typedef struct {
uint16_t counter;
- uint16_t type_version[2];
- uint16_t func_version;
} _PyBinarySubscrCache;
#define INLINE_CACHE_ENTRIES_BINARY_SUBSCR CACHE_ENTRIES(_PyBinarySubscrCache)
diff --git a/Include/internal/pycore_opcode.h b/Include/internal/pycore_opcode.h
index 4a0b27a..22914da 100644
--- a/Include/internal/pycore_opcode.h
+++ b/Include/internal/pycore_opcode.h
@@ -41,7 +41,7 @@ static const uint32_t _PyOpcode_Jump[9] = {
};
const uint8_t _PyOpcode_Caches[256] = {
- [BINARY_SUBSCR] = 4,
+ [BINARY_SUBSCR] = 1,
[STORE_SUBSCR] = 1,
[UNPACK_SEQUENCE] = 1,
[FOR_ITER] = 1,