Mike Frysinger d246d1fee7 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>
2021-04-01 14:43:19 +00:00
..
2021-02-27 19:45:14 +00:00
2021-02-27 19:56:24 +00:00
2021-02-23 00:31:27 +00:00
2021-02-19 20:06:20 +00:00
2021-04-01 14:43:19 +00:00
2021-03-19 21:13:49 +00:00
2021-03-31 16:28:24 +00:00
2021-03-24 00:32:04 +00:00
2021-01-06 18:53:58 +00:00