summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-04-24 10:06:58 (GMT)
committerGitHub <noreply@github.com>2020-04-24 10:06:58 (GMT)
commite6f8abd500751a834b6fff4f107ecbd29f2184fe (patch)
treeb6c864b0239aba840849bb4dba8a94d7b57b5b68 /Doc/whatsnew
parent162c567d164b5742c0d1f3f8bd8c8bab9c117cd0 (diff)
downloadcpython-e6f8abd500751a834b6fff4f107ecbd29f2184fe.zip
cpython-e6f8abd500751a834b6fff4f107ecbd29f2184fe.tar.gz
cpython-e6f8abd500751a834b6fff4f107ecbd29f2184fe.tar.bz2
bpo-38061: subprocess uses closefrom() on FreeBSD (GH-19697)
Optimize the subprocess module on FreeBSD using closefrom(). A single close(fd) syscall is cheap, but when sysconf(_SC_OPEN_MAX) is high, the loop calling close(fd) on each file descriptor can take several milliseconds. The workaround on FreeBSD to improve performance was to load and mount the fdescfs kernel module, but this is not enabled by default. Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans (kevans) and Kubilay Kocak (koobs): https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.9.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index ee85170..325121d 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -471,6 +471,10 @@ Optimizations
until the main thread handles signals.
(Contributed by Victor Stinner in :issue:`40010`.)
+* Optimize the :mod:`subprocess` module on FreeBSD using ``closefrom()``.
+ (Contributed by Ed Maste, Conrad Meyer, Kyle Evans, Kubilay Kocak and Victor
+ Stinner in :issue:`38061`.)
+
Build and C API Changes
=======================