Skip to content
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

Merged
merged 3 commits into from
Mar 19, 2018

Conversation

christiango
Copy link
Member

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.

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.'
Copy link
Collaborator

@octogonz octogonz Mar 16, 2018

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.`
Copy link
Collaborator

@octogonz octogonz Mar 16, 2018

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

Copy link
Collaborator

@octogonz octogonz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants