diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-01-11 09:37:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 09:37:24 -0700 |
commit | cf496d657a1a82eaf9ebfb47d721676fef6effa5 (patch) | |
tree | 6fde71cbde5f2713d77015f1c86baede744a239f /Include/internal/pycore_interp.h | |
parent | 6f05e1ec193c132015e9a23d1137b1731596f186 (diff) | |
download | cpython-git-cf496d657a1a82eaf9ebfb47d721676fef6effa5.tar.gz |
bpo-45953: Statically allocate and initialize global bytes objects. (gh-30096)
The empty bytes object (b'') and the 256 one-character bytes objects were allocated at runtime init. Now we statically allocate and initialize them.
https://bugs.python.org/issue45953
Diffstat (limited to 'Include/internal/pycore_interp.h')
-rw-r--r-- | Include/internal/pycore_interp.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index e4d7b1b875..d48ea87fd6 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -10,7 +10,6 @@ extern "C" { #include "pycore_atomic.h" // _Py_atomic_address #include "pycore_ast_state.h" // struct ast_state -#include "pycore_bytesobject.h" // struct _Py_bytes_state #include "pycore_context.h" // struct _Py_context_state #include "pycore_dict.h" // struct _Py_dict_state #include "pycore_exceptions.h" // struct _Py_exc_state @@ -152,7 +151,6 @@ struct _is { PyObject *audit_hooks; - struct _Py_bytes_state bytes; struct _Py_unicode_state unicode; struct _Py_float_state float_state; /* Using a cache is very effective since typically only a single slice is |