Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

[mono] limit DegreeOfParallelism to 16 #369

Merged
merged 1 commit into from
Nov 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ internal static class Scheduling
// The number of milliseconds before we assume a producer has been zombied.
internal const int ZOMBIED_PRODUCER_TIMEOUT = Timeout.Infinite;

#if MONO
/* limit to degree of 16 to avoid too much contention */
internal const int MAX_SUPPORTED_DOP = 16;
#else
// The largest number of partitions that PLINQ supports.
internal const int MAX_SUPPORTED_DOP = 512;
#endif


//-----------------------------------------------------------------------------------
Expand Down