summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-02-23 20:48:04 -0500
committerMike Frysinger <vapier@google.com>2021-02-27 19:55:14 +0000
commitebf04a4404e93c6d6b167775c90264dc24ed8c98 (patch)
treeb22de7eb3060f913395d2e655e996ce6fd64fd60 /git_command.py
parent8dbc07aced638b0d625870e283307e348046c82f (diff)
downloadgit-repo-ebf04a4404e93c6d6b167775c90264dc24ed8c98.tar.gz
sync: switch local checkout to multiprocessing
This avoids GIL limitations with using threads for parallel processing. In a CrOS checkout with ~1000 repos, the nop case goes from ~6 sec down to ~4 sec with -j8. Not a big deal, but shows that this actually works to speed things up unlike the threading model. This reworks the checkout logic to return results for processing in the main thread instead of leaving every thread to do its own processing. Bug: https://crbug.com/gerrit/12389 Change-Id: I143e5e3f7158e83ea67e2d14e5552153a874248a Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/298063 Reviewed-by: Chris Mcdonald <cjmcdonald@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'git_command.py')
0 files changed, 0 insertions, 0 deletions