summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-04 21:38:36 (GMT)
committerGitHub <noreply@github.com>2020-06-04 21:38:36 (GMT)
commit69ac6e58fd98de339c013fe64cd1cf763e4f9bca (patch)
tree98ab5b8f851d5512f097a73292e871a89c11f873 /Misc/NEWS.d
parentdc24b8a2ac32114313bae519db3ccc21fe45c982 (diff)
downloadcpython-69ac6e58fd98de339c013fe64cd1cf763e4f9bca.zip
cpython-69ac6e58fd98de339c013fe64cd1cf763e4f9bca.tar.gz
cpython-69ac6e58fd98de339c013fe64cd1cf763e4f9bca.tar.bz2
bpo-40521: Make tuple free list per-interpreter (GH-20247)
Each interpreter now has its own tuple free lists: * Move tuple numfree and free_list arrays into PyInterpreterState. * Define PyTuple_MAXSAVESIZE and PyTuple_MAXFREELIST macros in pycore_interp.h. * Add _Py_tuple_state structure. Pass it explicitly to tuple_alloc(). * Add tstate parameter to _PyTuple_ClearFreeList() * Each interpreter now has its own empty tuple singleton.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
new file mode 100644
index 0000000..f364d36
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
@@ -0,0 +1 @@
+Each interpreter now has its own tuple free lists and empty tuple singleton.