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

Support --threads=max #1722

Closed
dkarlovi opened this issue Sep 2, 2022 · 0 comments · Fixed by #1723
Closed

Support --threads=max #1722

dkarlovi opened this issue Sep 2, 2022 · 0 comments · Fixed by #1723
Labels
DX Developer Experience Feature Request
Milestone

Comments

@dkarlovi
Copy link

dkarlovi commented Sep 2, 2022

Is your feature request related to a problem? Please describe.
If running on multiple platforms, the user needs to decide which of the ways documented in the docs needs to be used. This makes scripting more difficult.

Describe the solution you'd like
Add --threads=max where max represents the value which would have been obtained by using the above linked methods.

Additional context
Psalm does it and even makes --threads=max the default. I'm guessing the count detection code could be stolen from there.

maks-rafalko added a commit that referenced this issue Sep 3, 2022
@maks-rafalko maks-rafalko added Feature Request DX Developer Experience labels Sep 3, 2022
@maks-rafalko maks-rafalko changed the title Support --threads=max Support --threads=max Sep 3, 2022
maks-rafalko added a commit that referenced this issue Sep 4, 2022
…mber of CPU cores (#1723)

* Introduce `--threads=max` option value to automatically detect the number of CPU cores

Implements #1722

* Fix CS
@maks-rafalko maks-rafalko added this to the next milestone Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Developer Experience Feature Request
Projects
None yet
2 participants