Message293708
Correction: this PR is useful for `ProcessPoolExecutor` as well. I thought `chunksize` parameter handles infinite generators already, but I was wrong. And, as long as the number of items prefetched is a multiple of `chunksize`, there are no issues with the chunksize optimization either.
And a minor correction: when listing the advantages of this PR, I should have said: "In addition, if the pool is not busy when `map` is called, your implementation will also be more responsive, since it will yield the first result earlier." |
|
| Date |
User |
Action |
Args |
| 2017-05-15 12:05:27 | max | set | recipients:
+ max, bquinlan, ezio.melotti, josh.r |
| 2017-05-15 12:05:27 | max | set | messageid: <[email protected]> |
| 2017-05-15 12:05:27 | max | link | issue29842 messages |
| 2017-05-15 12:05:27 | max | create | |
|