8000 bpo-33597: Add What's New for PyGC_Head (GH-8236) · python/cpython@d5c875b · GitHub
[go: up one dir, main page]

Skip to content

Commit d5c875b

Browse files
authored
bpo-33597: Add What's New for PyGC_Head (GH-8236)
1 parent da5e947 commit d5c875b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/whatsnew/3.8.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ Optimizations
127127
first introduced in Python 3.4. It offers better performance and smaller
128128
size compared to Protocol 3 available since Python 3.0.
129129

130+
* Removed one ``Py_ssize_t`` member from ``PyGC_Head``. All GC tracked
131+
objects (e.g. tuple, list, dict) size is reduced 4 or 8 bytes.
132+
(Contributed by Inada Naoki in :issue:`33597`)
133+
130134

131135
Build and C API Changes
132136
=======================
@@ -201,6 +205,10 @@ Changes in the Python API
201205
* :func:`shutil.copyfile` default buffer size on Windows was changed from
202206
16 KiB to 1 MiB.
203207

208+
* ``PyGC_Head`` struct is changed completely. All code touched the
209+
struct member should be rewritten. (See :issue:`33597`)
210+
211+
204212
CPython bytecode changes
205213
------------------------
206214

0 commit comments

Comments
 (0)
0