Improve wafcache process pre-allocation

This commit is contained in:
Thomas Nagy 2020-08-03 23:20:53 +02:00
parent b41b1741d1
commit f65d08f5d5
1 changed files with 3 additions and 2 deletions

View File

@ -233,8 +233,9 @@ def build(bld):
# already called once
return
for x in range(bld.jobs):
process_pool.append(get_process())
# pre-allocation
processes = [get_process() for x in range(bld.jobs)]
process_pool.extend(processes)
Task.Task.can_retrieve_cache = can_retrieve_cache
Task.Task.put_files_cache = put_files_cache