File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff 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+
276292os.path
277293-------
278294
You can’t perform that action at this time.
0 commit comments