diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-30 17:17:52 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-30 17:43:25 +0200 |
commit | f4e9de93b50fe8135d378830577cda687cae28ee (patch) | |
tree | e14f306aba4fb9c6b83c8ee9990204eece9d17ac /test/utils/run_test_server.py | |
parent | 39f0445a99cbb1256c531f8ec827aea424e328c3 (diff) | |
download | justbuild-f4e9de93b50fe8135d378830577cda687cae28ee.tar.gz |
WriteTargetCacheEntries: do not use quadratic many jobs
When backing up target-cache entries we use parallelism at two
dimensions, the independent cache entries and for each entry we
retrieve the artifacts in parallel. If for each dimension we use
the full amount of parallelism allowed, that gives a number of
threads up to the square of the amount of parallelism specified by
the user. Therefore, use in each dimension only the square root
of the allowed parallelism keeping the total parallelism (up to
rounding) within the specified range.
Diffstat (limited to 'test/utils/run_test_server.py')
0 files changed, 0 insertions, 0 deletions