From 8add62325dbe4df60cde1af6b093d99e79685140 Mon Sep 17 00:00:00 2001 From: Chris McDonald Date: Wed, 9 Dec 2020 14:27:59 -0700 Subject: 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 Reviewed-by: Mike Frysinger --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index e9b04dc7..4e91be94 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ __pycache__ .repopickle_* /repoc /.tox +/.venv # PyCharm related /.idea/ -- cgit v1.2.3-54-g00ecf