diff options
Diffstat (limited to 'command.py')
| -rw-r--r-- | command.py | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -23,6 +23,15 @@ from error import NoSuchProjectError | |||
| 23 | from error import InvalidProjectGroupsError | 23 | from error import InvalidProjectGroupsError |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | # Number of projects to submit to a single worker process at a time. | ||
| 27 | # This number represents a tradeoff between the overhead of IPC and finer | ||
| 28 | # grained opportunity for parallelism. This particular value was chosen by | ||
| 29 | # iterating through powers of two until the overall performance no longer | ||
| 30 | # improved. The performance of this batch size is not a function of the | ||
| 31 | # number of cores on the system. | ||
| 32 | WORKER_BATCH_SIZE = 32 | ||
| 33 | |||
| 34 | |||
| 26 | # How many jobs to run in parallel by default? This assumes the jobs are | 35 | # How many jobs to run in parallel by default? This assumes the jobs are |
| 27 | # largely I/O bound and do not hit the network. | 36 | # largely I/O bound and do not hit the network. |
| 28 | DEFAULT_LOCAL_JOBS = min(os.cpu_count(), 8) | 37 | DEFAULT_LOCAL_JOBS = min(os.cpu_count(), 8) |
