Skip to content

Commit d09e891

Browse files
committed
Add whatsnew entry
1 parent c941c16 commit d09e891

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,22 @@ math
273273
(Contributed by Bénédikt Tran in :gh:`135853`.)
274274

275275

276+
multiprocessing
277+
---------------
278+
279+
* Add the optional ``buffersize`` parameter to
280+
:meth:`multiprocessing.pool.Pool.imap` and
281+
:meth:`multiprocessing.pool.Pool.imap_unordered` to limit the number of
282+
submitted tasks whose results have not yet been yielded. If the buffer is
283+
full, iteration over the *iterables* pauses until a result is yielded from
284+
the buffer. To fully utilize pool's capacity when using this feature, set
285+
*buffersize* at least to the number of processes in pool (to consume
286+
*iterable* as you go), or even higher (to prefetch the next
287+
``N=buffersize-processes`` arguments).
288+
289+
(Contributed by Oleksandr Baltian in :gh:`136871`.)
290+
291+
276292
os.path
277293
-------
278294

0 commit comments

Comments
 (0)