summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_repo.hpp
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-06-11 12:12:05 +0200
commit76d476ff2d6f23724a4fa31a42a60c98574f1b99 (patch)
tree7e069ef6d328033adaf89688fc0ae29c1bd0c6dd /src/buildtool/file_system/git_repo.hpp
parentec49b7cda4154f05c1c561a124966414ef3e5e11 (diff)
downloadjustbuild-76d476ff2d6f23724a4fa31a42a60c98574f1b99.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. (cherry-picked from f4e9de93b50fe8135d378830577cda687cae28ee)
Diffstat (limited to 'src/buildtool/file_system/git_repo.hpp')
0 files changed, 0 insertions, 0 deletions