summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/C API
diff options
context:
space:
mode:
authorAlexander P. <37912520+aplaikner@users.noreply.github.com>2024-08-31 05:57:22 (GMT)
committerGitHub <noreply@github.com>2024-08-31 05:57:22 (GMT)
commit74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e (patch)
tree9b021b860450d2c47f08f66676ee44cf22ad2145 /Misc/NEWS.d/next/C API
parent1ce9e5880347346105693aba211f4c378f5a9b6a (diff)
downloadcpython-74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e.zip
cpython-74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e.tar.gz
cpython-74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e.tar.bz2
gh-121313: Limit the reading size from pipes to their default buffer size on POSIX systems (GH-121315)
See https://github.com/python/cpython/issues/121313 for analysis, but this greatly reduces memory overallocation and overhead when multiprocessing is sending non-small data over its pipes between processes.
Diffstat (limited to 'Misc/NEWS.d/next/C API')
-rw-r--r--Misc/NEWS.d/next/C API/2024-07-03-10-11-53.gh-issue-121313.D7gARW.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2024-07-03-10-11-53.gh-issue-121313.D7gARW.rst b/Misc/NEWS.d/next/C API/2024-07-03-10-11-53.gh-issue-121313.D7gARW.rst
new file mode 100644
index 0000000..06abce9
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2024-07-03-10-11-53.gh-issue-121313.D7gARW.rst
@@ -0,0 +1 @@
+Limit reading size in multiprocessing connection._recv for pipes to default pipe size of 16 times base page size, in order to avoid memory overallocation and unnecessary memory management system calls.