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

SCons: Default num_jobs to max CPUs minus 1 if not specified #63087

Merged
merged 1 commit into from
Jul 17, 2022

Commits on Jul 17, 2022

  1. SCons: Default num_jobs to max CPUs minus 1 if not specified

    This doesn't change the behavior when `--jobs`/`-j` is specified as a
    command-line argument or in `SCONSFLAGS`.
    
    The SCons hack used to know if `num_jobs` was set by the user is derived
    from the MongoDB setup.
    
    We use `os.cpu_count()` for portability (available since Python 3.4).
    
    With 4 CPUs or less, we use the max. With more than 4 we use max - 1 to
    preserve some bandwidth for the user's other programs.
    akien-mga committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    ea21122 View commit details
    Browse the repository at this point in the history