[Python-checkins] bpo-33597: Add What's New for PyGC_Head (GH-8236)
INADA Naoki
webhook-mailer at python.org
Wed Jul 11 04:43:00 EDT 2018
https://github.com/python/cpython/commit/d5c875bbf1ef9b24349d3243b1ffaab6a9d5a78e
commit: d5c875bbf1ef9b24349d3243b1ffaab6a9d5a78e
branch: master
author: INADA Naoki <methane at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-07-11T17:42:49+09:00
summary:
bpo-33597: Add What's New for PyGC_Head (GH-8236)
files:
M Doc/whatsnew/3.8.rst
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 5fe1c7166fe6..ace814e577f1 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -127,6 +127,10 @@ Optimizations
first introduced in Python 3.4. It offers better performance and smaller
size compared to Protocol 3 available since Python 3.0.
+* Removed one ``Py_ssize_t`` member from ``PyGC_Head``. All GC tracked
+ objects (e.g. tuple, list, dict) size is reduced 4 or 8 bytes.
+ (Contributed by Inada Naoki in :issue:`33597`)
+
Build and C API Changes
=======================
@@ -201,6 +205,10 @@ Changes in the Python API
* :func:`shutil.copyfile` default buffer size on Windows was changed from
16 KiB to 1 MiB.
+* ``PyGC_Head`` struct is changed completely. All code touched the
+ struct member should be rewritten. (See :issue:`33597`)
+
+
CPython bytecode changes
------------------------
More information about the Python-checkins
mailing list