]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45953: Statically allocate and initialize global bytes objects. (gh-30096)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 11 Jan 2022 16:37:24 +0000 (09:37 -0700)
committerGitHub <noreply@github.com>
Tue, 11 Jan 2022 16:37:24 +0000 (09:37 -0700)
commitcf496d657a1a82eaf9ebfb47d721676fef6effa5
tree6fde71cbde5f2713d77015f1c86baede744a239f
parent6f05e1ec193c132015e9a23d1137b1731596f186
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
Include/internal/pycore_bytesobject.h
Include/internal/pycore_global_objects.h
Include/internal/pycore_interp.h
Objects/bytesobject.c
Python/pylifecycle.c