Skip to content

Adaptive MAX_JOBS depending on cpu count #724

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atonderski
Copy link

Adaptively grow MAX_JOBS beyond 10 for systems with a larger number of cores.
This is purely for convenience, since MAX_JOBS can be set in the environment, but
probably a better default than a single value across all systems.

For example, with a 9950x3d this reduces compile time from 45s to 30s.

Adaptively grow MAX_JOBS beyond 10 for systems with a larger number of cores.

For example, with a 9950x3d this reduces compile time from 45s to 30s.
@liruilong940607
Copy link
Collaborator

I'm deliberately not setting it to cpu_count because on curtain systems this will crash the build (maybe bc of small RAM?) so 10 is a conservative setting here to make sure it does not crash.

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