Shrink the LOAD_METHOD cache by one codeunit. (#93537)

This commit is contained in:
Mark Shannon 2022-06-07 10:28:53 +01:00 committed by GitHub
parent 75ceae05c1
commit f012df706c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 18 deletions

View file

@ -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;

View file

@ -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,
};