gh-133059: Increase the small positive integer cache to 1024 (GH-133160)

This commit is contained in:
dgpb 2025-09-25 00:05:30 +03:00 committed by GitHub
parent e45d535208
commit 7ce25edb8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 1544 additions and 7 deletions

View file

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