mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-133059: Increase the small positive integer cache to 1024 (GH-133160)
This commit is contained in:
parent
e45d535208
commit
7ce25edb8f
7 changed files with 1544 additions and 7 deletions
|
|
@ -106,7 +106,7 @@ struct _Py_cached_objects {
|
|||
};
|
||||
|
||||
// These would be in pycore_long.h if it weren't for an include cycle.
|
||||
#define _PY_NSMALLPOSINTS 257
|
||||
#define _PY_NSMALLPOSINTS 1025
|
||||
#define _PY_NSMALLNEGINTS 5
|
||||
|
||||
#include "pycore_global_strings.h" // struct _Py_global_strings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue