diff options
author | Alexander P. <37912520+aplaikner@users.noreply.github.com> | 2024-08-31 05:57:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 05:57:22 (GMT) |
commit | 74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e (patch) | |
tree | 9b021b860450d2c47f08f66676ee44cf22ad2145 /Misc/NEWS.d/next/C API | |
parent | 1ce9e5880347346105693aba211f4c378f5a9b6a (diff) | |
download | cpython-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.rst | 1 |
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. |