summaryrefslogtreecommitdiffstats
path: root/Misc/svnmap.txt
diff options
context:
space:
mode:
authorRuben Vorderman <r.h.p.vorderman@lumc.nl>2020-10-19 23:30:02 (GMT)
committerGitHub <noreply@github.com>2020-10-19 23:30:02 (GMT)
commit23c0fb8edd16fe6d796df2853a5369fd783e05b7 (patch)
treedb69e4ae0611f578233c1018a244c49ff9a51deb /Misc/svnmap.txt
parentbf838227c35212709dc43b3c3c57f8e1655c1d24 (diff)
downloadcpython-23c0fb8edd16fe6d796df2853a5369fd783e05b7.zip
cpython-23c0fb8edd16fe6d796df2853a5369fd783e05b7.tar.gz
cpython-23c0fb8edd16fe6d796df2853a5369fd783e05b7.tar.bz2
bpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and F_SETPIPE_SZ to fcntl. (GH-21921)
* Add F_SETPIPE_SZ and F_GETPIPE_SZ to fcntl module * Add pipesize parameter for subprocess.Popen class This will allow the user to control the size of the pipes. On linux the default is 64K. When a pipe is full it blocks for writing. When a pipe is empty it blocks for reading. On processes that are very fast this can lead to a lot of wasted CPU cycles. On a typical Linux system the max pipe size is 1024K which is much better. For high performance-oriented libraries such as xopen it is nice to be able to set the pipe size. The workaround without this feature is to use my_popen_process.stdout.fileno() in conjuction with fcntl and 1031 (value of F_SETPIPE_SZ) to acquire this behavior.
Diffstat (limited to 'Misc/svnmap.txt')
0 files changed, 0 insertions, 0 deletions