futurist/futurist
Chenjun Shen 8fff2242ff Improve get optimal count of max_worker for pool
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.

Change-Id: Id68e38a639c41426f125180ad335fb1fb97cba59
Closes-bug: #1739034
2017-12-21 16:01:17 +01:00
..
tests Do not check spacing if periodic disabled 2017-03-23 14:36:25 +02:00
__init__.py Expose underlying timeout error 2017-03-31 22:56:26 -07:00
_futures.py Improve get optimal count of max_worker for pool 2017-12-21 16:01:17 +01:00
_green.py Add re-raising SystemExit exception 2017-01-12 15:32:32 +00:00
_thread.py Begin adding our own thread pool executor 2016-06-11 11:05:18 -07:00
_utils.py Improve get optimal count of max_worker for pool 2017-12-21 16:01:17 +01:00
periodics.py Do not check spacing if periodic disabled 2017-03-23 14:36:25 +02:00
rejection.py Fix wrong comparison in reject_when_reached 2016-02-17 20:07:24 +01:00
waiters.py Add future waiting helper module 2015-07-11 05:46:37 +00:00