diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-27 16:53:32 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-31 21:55:35 +0300 |
commit | c20ca0ad3dc33dfef697e37a6e06d198204fb569 (patch) | |
tree | 324e1c0393c1526e3141e09725ee5ff25031f913 /run_project_tests.py | |
parent | aeaefce81e91232512e0a56ce6a1a83a14c84bb4 (diff) | |
download | meson-c20ca0ad3dc33dfef697e37a6e06d198204fb569.zip meson-c20ca0ad3dc33dfef697e37a6e06d198204fb569.tar.gz meson-c20ca0ad3dc33dfef697e37a6e06d198204fb569.tar.bz2 |
Try to use 2x the number of cores.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-x | run_project_tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 58a0fd5..71770f3 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -503,6 +503,12 @@ def _run_tests(all_tests, log_name_base, extra_args): print('Could not determine number of CPUs due to the following reason:' + str(e)) print('Defaulting to using only one process') num_workers = 1 + # Due to Ninja deficiency, almost 50% of build time + # is spent waiting. Do something useful instead. + # + # Remove this once the following issue has been resolved: + # https://github.com/mesonbuild/meson/pull/2082 + num_workers *= 2 try: executor = conc.ProcessPoolExecutor(max_workers=num_workers) except ImportError: |