diff options
author | Chris McDonald <cjmcdonald@google.com> | 2020-12-09 14:27:59 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-12-14 23:35:12 +0000 |
commit | 8add62325dbe4df60cde1af6b093d99e79685140 (patch) | |
tree | f9433863c843d5c36f1fe3c26c9f20e94c415ce5 /tests/test_wrapper.py | |
parent | 974774761c5d11378b987d6f195bd057b81dba47 (diff) | |
download | git-repo-8add62325dbe4df60cde1af6b093d99e79685140.tar.gz |
Add parallelism to 'branches' command
Spread the operation of querying which local branches exist across a
pool of processes and build the name map of projects -> branches as
these tasks finish rather than blocking on the entire query. The search
operations are submitted in batches to reduce the overhead of interprocess
communication. The `chunksize` argument used to control this batch size
was selected by incrementing through powers of two until it stopped being
faster.
Change-Id: Ie3d7f799ee8e83e5058536caf53e2979175408b7
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/291342
Tested-by: Chris Mcdonald <cjmcdonald@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests/test_wrapper.py')
0 files changed, 0 insertions, 0 deletions