Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around multiprocessing limits on Windows (#34489)
Python 3 may hang when starting more than about 60 child processes using the multiprocessing module. Clamping to 56 gives some margin for error and recognizes that going too high hits diminishing returns (due to startup costs). More information can be found in https://crbug.com/1190269 and https://crbug.com/1336854. The specific issue found is that "git cl presubmit --force --all" in a Chromium repo on a machine with more than 60 cores will hang when it gets to the step that runs lint.py.
- Loading branch information