diff options
Diffstat (limited to 'subcmds/branches.py')
-rw-r--r-- | subcmds/branches.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/subcmds/branches.py b/subcmds/branches.py index 9665e85f..d5ea580c 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py | |||
@@ -16,15 +16,7 @@ import itertools | |||
16 | import multiprocessing | 16 | import multiprocessing |
17 | import sys | 17 | import sys |
18 | from color import Coloring | 18 | from color import Coloring |
19 | from command import Command, DEFAULT_LOCAL_JOBS | 19 | from command import Command, DEFAULT_LOCAL_JOBS, WORKER_BATCH_SIZE |
20 | |||
21 | # Number of projects to submit to a single worker process at a time. | ||
22 | # This number represents a tradeoff between the overhead of IPC and finer | ||
23 | # grained opportunity for parallelism. This particular value was chosen by | ||
24 | # iterating through powers of two until the overall performance no longer | ||
25 | # improved. The performance of this batch size is not a function of the | ||
26 | # number of cores on the system. | ||
27 | WORKER_BATCH_SIZE = 32 | ||
28 | 20 | ||
29 | 21 | ||
30 | class BranchColoring(Coloring): | 22 | class BranchColoring(Coloring): |