summaryrefslogtreecommitdiff
path: root/test/end-to-end/generated-binary/shell-script.sh
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-30 17:17:52 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-30 17:43:25 +0200
commitf4e9de93b50fe8135d378830577cda687cae28ee (patch)
treee14f306aba4fb9c6b83c8ee9990204eece9d17ac /test/end-to-end/generated-binary/shell-script.sh
parent39f0445a99cbb1256c531f8ec827aea424e328c3 (diff)
downloadjustbuild-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/end-to-end/generated-binary/shell-script.sh')
0 files changed, 0 insertions, 0 deletions