summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-03-01 02:06:10 -0500
committerMike Frysinger <vapier@google.com>2021-03-01 15:58:06 +0000
commit13cb7f799dc61093ed69726093a5af8bf48c65d1 (patch)
tree8b20fcf594b0e07676dea41792d58d81d16efdd4 /error.py
parent819c73954f0f0d80afda86e871000e7521bfd982 (diff)
downloadgit-repo-13cb7f799dc61093ed69726093a5af8bf48c65d1.tar.gz
forall: greatly speed up processing overheadv2.13
With the recent commit 0501b29e7ae072e0b10ea9ddd913ec6d5975f690 ("status: Use multiprocessing for `repo status -j<num>` instead of threading"), the limitation with project serialization no longer applies. It turns out that ad-hoc logic is expensive. In the CrOS checkout (~1000 projects w/8 jobs by default), it adds about ~7sec overhead to all invocations. With a fast nop run: time repo forall -j8 -c true This goes from ~11sec to ~4sec -- more than 50% speedup. Change-Id: Ie6bcccd21eef20440692751b7ebd36c890d5bbcc Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/298724 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'error.py')
0 files changed, 0 insertions, 0 deletions