diff options
author | Kyle Stanley <aeros167@gmail.com> | 2020-04-19 14:00:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 14:00:59 (GMT) |
commit | 1ac6e379297cc1cf8acf6c1b011fccc7b3da2cbe (patch) | |
tree | 89df3b0a4f0a8775039b6d4c3ea7a90624a72f65 /Doc/whatsnew | |
parent | c12375aa0b838d34067efa3f1b9a1fbc632d0413 (diff) | |
download | cpython-1ac6e379297cc1cf8acf6c1b011fccc7b3da2cbe.zip cpython-1ac6e379297cc1cf8acf6c1b011fccc7b3da2cbe.tar.gz cpython-1ac6e379297cc1cf8acf6c1b011fccc7b3da2cbe.tar.bz2 |
bpo-39207: Spawn workers on demand in ProcessPoolExecutor (GH-19453)
Roughly based on https://github.com/python/cpython/commit/904e34d4e6b6007986dcc585d5c553ee8ae06f95, but with a few substantial differences.
/cc @pitrou @brianquinlan
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.9.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 8147d8f..c4b49fe 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -206,6 +206,11 @@ and :class:`~concurrent.futures.ProcessPoolExecutor`. This improves compatibility with subinterpreters and predictability in their shutdown processes. (Contributed by Kyle Stanley in :issue:`39812`.) +Workers in :class:`~concurrent.futures.ProcessPoolExecutor` are now spawned on +demand, only when there are no available idle workers to reuse. This optimizes +startup overhead and reduces the amount of lost CPU time to idle workers. +(Contributed by Kyle Stanley in :issue:`39207`.) + curses ------ |