Skip to content
Commit ebf04a44 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

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: default avatarChris Mcdonald <cjmcdonald@google.com>
Tested-by: default avatarMike Frysinger <vapier@google.com>
parent 8dbc07ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment