diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-30 00:52:02 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-30 00:52:02 +0200 |
| commit | 6e16db5d49dbe5c93885e4950e43c6c1465e6a61 (patch) | |
| tree | 60472174bf3dfcfebce63103a81067a14cae3ebb /scripts | |
| parent | 96eda726cfcfea4efe8b5c7e6ce83ef30bc04166 (diff) | |
| download | psutil-6e16db5d49dbe5c93885e4950e43c6c1465e6a61.tar.gz | |
do not pass max_workers=cpus to ThreadPoolExecutor: by default it does cpus * 5 which is better
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/download_exes.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/internal/download_exes.py b/scripts/internal/download_exes.py index 249b8689..62f3e94d 100755 --- a/scripts/internal/download_exes.py +++ b/scripts/internal/download_exes.py @@ -15,7 +15,6 @@ http://code.saghul.net/index.php/2015/09/09/ from __future__ import print_function import argparse import errno -import multiprocessing import os import requests import shutil @@ -154,7 +153,7 @@ def rename_27_wheels(): def main(options): files = [] safe_rmtree('dist') - with ThreadPoolExecutor(max_workers=multiprocessing.cpu_count()) as e: + with ThreadPoolExecutor() as e: for url in get_file_urls(options): fut = e.submit(download_file, url) files.append(fut.result()) |
