A collection of async functionality and additions from the future.
Go to file
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
doc/source turn on warning-is-error in doc build 2017-07-10 13:04:22 +00:00
futurist Improve get optimal count of max_worker for pool 2017-12-21 16:01:17 +01:00
releasenotes Improve get optimal count of max_worker for pool 2017-12-21 16:01:17 +01:00
.coveragerc Remove tests output from code coverage 2015-10-05 13:10:11 -04:00
.gitignore Update .gitignore 2017-07-10 16:40:38 +05:30
.gitreview Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
.mailmap Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
.testr.conf Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
CONTRIBUTING.rst Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 22:11:42 +08:00
LICENSE Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
MANIFEST.in Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
README.rst Update URLs in documents according to document migration 2017-07-12 22:11:42 +08:00
babel.cfg Add initial .gitreview file and cookie-cutter template 2015-06-02 09:22:45 -04:00
requirements.txt Updated from global requirements 2017-11-16 11:02:50 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-12 22:11:42 +08:00
setup.py Updated from global requirements 2017-03-02 11:44:08 +00:00
test-requirements.txt Updated from global requirements 2017-11-16 11:02:50 +00:00
tox.ini Avoid tox_install.sh for constraints support 2017-12-02 16:52:09 +00:00

README.rst

Team and repository tags

image

Futurist

Latest Version

Downloads

Code from the future, delivered to you in the now. The goal of this library would be to provide a well documented futures classes/utilities/additions that allows for providing a level of transparency in how asynchronous work gets executed. This library currently adds statistics gathering, an eventlet executor, a synchronous executor etc.