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
Replace Configuration.ParallelOptions with Configuration.MaxDegreeOfParallelism #667
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looking good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM though could you check that min value?
get => this.maxDegreeOfParallelism; | ||
set | ||
{ | ||
if (value <= 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this min value be 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value <=0
means it has to be > 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zero is an exclusive minimum here, if (value <= 1)
would mean that we throw for MaxDegreeOfParallelism = 1
which is allowed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pleading still jetlagged
Codecov Report
@@ Coverage Diff @@
## master #667 +/- ##
==========================================
- Coverage 89.79% 89.67% -0.13%
==========================================
Files 889 890 +1
Lines 37614 37633 +19
Branches 2468 2472 +4
==========================================
- Hits 33777 33747 -30
- Misses 3133 3182 +49
Partials 704 704
Continue to review full report at Codecov.
|
Replace Configuration.ParallelOptions with Configuration.MaxDegreeOfParallelism
Prerequisites
Description
Fixes #651.
Internal helpers
ParallelFor.WithConfiguration(...)
andParallelFor.WithTemporaryBuffer<T>(...)
are utilized more heavily.