-
Notifications
You must be signed in to change notification settings - Fork 611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for using all cores on windows machines with -p max flag #565
Conversation
parameterLongName: '--parallelism', | ||
parameterShortName: '-p', | ||
key: 'COUNT', | ||
description: 'Specify the number of concurrent build processes.' | ||
description: 'Specify the number of concurrent build processes' | ||
+ ` A value of 'max' can be used to achieve the maximum default parallelism.` | ||
+ ' If omitted, the parallelism will be based on the number of CPU cores.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe clarify:
'The value "max" can be specified to indicate the number of CPU cores. If this parameter omitted, the default value depends on the operating system and number of CPU cores." #Resolved
parameterLongName: '--parallelism', | ||
parameterShortName: '-p', | ||
key: 'COUNT', | ||
description: 'Specify the number of concurrent build processes.' | ||
description: 'Specify the number of concurrent build processes' | ||
+ ` A value of 'max' can be used to achieve the maximum default parallelism.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
' [](start = 29, length = 1)
English language uses double-quotes #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A change was made recently to rush to make it such that the default parallelism is set to be 1 less than the number of cores on windows. This was to address some performance issues windows users were experiencing when trying to do other tasks while a rush build was running.
However, in CI environments, we want the maximum amount of available parallelism to get faster builds. This change introduces a 'max' argument to the -p flag that always sets the paralellism to equal the number of cores on the CPU.