]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-121313: Limit the reading size from pipes to their default buffer size on POSIX...
authorAlexander P. <37912520+aplaikner@users.noreply.github.com>
Sat, 31 Aug 2024 05:57:22 +0000 (07:57 +0200)
committerGitHub <noreply@github.com>
Sat, 31 Aug 2024 05:57:22 +0000 (22:57 -0700)
commit74bfb53e3afb6f5dd90dff3ef0e2dc3b2fba823e
tree9b021b860450d2c47f08f66676ee44cf22ad2145
parent1ce9e5880347346105693aba211f4c378f5a9b6a
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.
Lib/multiprocessing/connection.py
Misc/NEWS.d/next/C API/2024-07-03-10-11-53.gh-issue-121313.D7gARW.rst [new file with mode: 0644]