diff options
author | Dave Borowitz <dborowitz@google.com> | 2012-10-23 17:02:59 -0700 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2012-10-25 08:12:48 -0700 |
commit | 188572170e8cdf28df55a5ca90ed70d14b72b804 (patch) | |
tree | d64ad4724552898c9c49ba19f715c74c5caa504c /git_command.py | |
parent | 091f893625269fd12adadf7d1f60c21b4b83e779 (diff) | |
download | git-repo-188572170e8cdf28df55a5ca90ed70d14b72b804.tar.gz |
sync: Run gc --auto in parallel
We can't just let this run wild with a high (or even low) -j, since
that would hose a system. Instead, limit the total number of threads
across all git gc subprocesses to the number of CPUs reported by the
multiprocessing module (available in Python 2.6 and above).
Change-Id: Icca0161a1e6116ffa5f7cfc6f5faecda510a7fb9
Diffstat (limited to 'git_command.py')
0 files changed, 0 insertions, 0 deletions