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

change default value of --process to (number of CPUs)-1 #4104

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

Conversation

xsuchy
Copy link
Contributor

@xsuchy xsuchy commented Jan 18, 2025

Related: #2980

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • [-] Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
    Test suite fails to run for me, but the script run correctly.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

@xsuchy xsuchy force-pushed the 2980 branch 2 times, most recently from cc8c78b to 4ded913 Compare January 23, 2025 18:48
@xsuchy
Copy link
Contributor Author

xsuchy commented Jan 23, 2025

I believe the tests failures on MacOS is not relevant to this code.

Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra left a comment

Choose a reason for hiding this comment

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

@xsuchy Thanks++ for the PR.
Overall this sounds like a nice idea, to increase the number of CPUs by default.
It seems like we have an agreement to have this at n-1 from #2980, and this sounds mostly fine to me, although n-2 could have been safer when users might have multiple other things open/in use if they are running scancode in their personal computers. But everywhere else this sounds great, and folks can always reduce the default CPU if it creates problems.

Not sure about the test failures, could you merge latest develop just to be sure?

@pombredanne please review this too.

Related: aboutcode-org#2980
Signed-off-by: Miroslav Suchý <msuchy@redhat.com>
@xsuchy
Copy link
Contributor Author

xsuchy commented Apr 5, 2025

Rebased on top of develop branch.

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