Small optimizations. Branches which we don't visit in runtime disabled. TODOs added.
This commit is contained in:
1 parent
7a22fbbba7
commit
5fbd5bc20c
5 files changed
+1171
-1176
No files matched your search
@@ -257,10 +257,11 @@ public static class MersenneNumberDivisorByDivisorTester
|
||||
}
|
||||
else
|
||||
{
|
||||
var scheduler = UnboundedTaskScheduler.Instance;
|
||||
ParallelOptions options = new()
|
||||
{
|
||||
MaxDegreeOfParallelism = workerCount,
|
||||
TaskScheduler = UnboundedTaskScheduler.Instance
|
||||
TaskScheduler = scheduler
|
||||
};
|
||||
|
||||
Parallel.ForEach(filteredPrimes, options, ProcessPrime);
|
||||
|
||||
Reference in new issue
Block a user