2017-12-19 14:09:36 |
Chenjun Shen |
description |
In the upstream of futures library, the DEFAULT value max_worker for ThreadPoolExecutor and ProcessPoolExecutor has been changed to:
ThreadPoolExecutor
max_worker = cpu_count() * 5
Reference:
https://github.com/agronholm/pythonfutures/blob/master/concurrent/futures/thread.py#L109
ProcessPoolExecutor
max_worker = cpu_count()
Reference:
https://github.com/agronholm/pythonfutures/blob/master/concurrent/futures/process.py#L278
So we should do it as well. |
In the upstream of futures library, the DEFAULT value max_worker for ThreadPoolExecutor and ProcessPoolExecutor has been changed to:
ThreadPoolExecutor
max_worker = cpu_count() * 5
Reference:
https://github.com/agronholm/pythonfutures/blob/master/concurrent/futures/thread.py#L109
ProcessPoolExecutor
max_worker = cpu_count()
Reference:
https://github.com/agronholm/pythonfutures/blob/master/concurrent/futures/process.py#L278
So we should do it as well. |
|