Re:The easy way to concurrency and parallelism with Python s...
by networked on Thursday September 14, 2023 @01:50PM
(#37512347)
I have looked through the documentation for `concurrent.futures`, and there is another option. You can use `Executor.map` (https://docs.python.org/3/library/concurrent.futures.html#co...). It eliminates the need to wait on the futures explicitly.
The default value of `max_workers` since
Python 3.8 has been
It seems like you should avoid
It won't save resources with smaller collections of items (workers are created when needed) and may waste resources with larger.
[ Parent
| on HN ]
There are no comments on this comment yet.