mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-98417: Store int_max_str_digits on the Interpreter State (GH-98418)
This commit is contained in:
parent
52fcba6512
commit
9c8dde0fa5
4 changed files with 13 additions and 5 deletions
|
@ -69,6 +69,11 @@ struct atexit_state {
|
|||
};
|
||||
|
||||
|
||||
struct _Py_long_state {
|
||||
int max_str_digits;
|
||||
};
|
||||
|
||||
|
||||
/* interpreter state */
|
||||
|
||||
/* PyInterpreterState holds the global state for one of the runtime's
|
||||
|
@ -164,6 +169,7 @@ struct _is {
|
|||
|
||||
struct _Py_unicode_state unicode;
|
||||
struct _Py_float_state float_state;
|
||||
struct _Py_long_state long_state;
|
||||
/* Using a cache is very effective since typically only a single slice is
|
||||
created and then deleted again. */
|
||||
PySliceObject *slice_cache;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue