Try to use 2x the number of cores.

pull/2220/head
Jussi Pakkanen 7 years ago
parent aeaefce81e
commit c20ca0ad3d
  1. 6
      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:

Loading…
Cancel
Save