summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-02-24 12:50:30 -0500
committerMike Frysinger <vapier@google.com>2021-04-01 14:43:19 +0000
commitd246d1fee7f42f2526a20a96597c8f01eda31433 (patch)
treec61356504d2c6011346183171e3ed87dc4d04529 /subcmds/sync.py
parentbec4fe8aa39cdf9d1a67bfba8a31b3826f9ff197 (diff)
downloadgit-repo-d246d1fee7f42f2526a20a96597c8f01eda31433.tar.gz
grep: add --jobs support
Use multiprocessing to run in parallel. When operating on multiple projects, this can greatly speed things up. Across 1000 repos, it goes from ~40sec to ~16sec with the default -j8. The output processing does not appear to be a significant bottle neck -- it accounts for <1sec out of the ~16sec runtime. Thus we leave it in the main thread to simplify the code. Change-Id: I750b72c7711b0c5d26e65d480738fbaac3a69971 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/297984 Reviewed-by: Chris Mcdonald <cjmcdonald@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/sync.py')
0 files changed, 0 insertions, 0 deletions