Feature request: fractional threads-required #2876
JesseTheRobot
started this conversation in
Feature requests
Replies: 1 comment 3 replies
-
|
Thanks for the feature request. I don't know how I feel about this -- it seems somewhat niche to me. Out of curiosity have you seen if this makes an actual performance difference? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
I use nextest on a fairly sized project, and use threads-required to prevent resource contention issues in CI & locally.
The current integer nature of threads-required means that I cannot precisely right size the values for tests - some consume 0.5 threads worth of compute on average, while some consume 3.5. This is not a major detriment but I am looking to improve resource utilisation to speed up test execution.
Proposal
Change threads-required to support fractional values (i.e 0.5, 3.5) - probably with a reasonable precision limit (1 decimal place)
Alternatives
None so far
Additional context
This is partially a probe to get an idea of sentiment and whether such a feature would be accepted, as I am willing to work on implementing this myself. If anyone can see a reason for allowing more than 1DP of precision here let me know.
Beta Was this translation helpful? Give feedback.
All reactions