File tree 1 file changed +4
-1
lines changed
src/Servers/Kestrel/Transport.Sockets/src/Internal 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,16 @@ private static int DetermineDefaultCount()
81
81
// Since each IOQueue schedules one work item to process its work, the number of IOQueues determines the maximum
82
82
// parallelism of processing work queued to IOQueues. The default number below is based on the processor count and tries
83
83
// to use a high-enough number for that to not be a significant limiting factor for throughput.
84
+ //
85
+ // On Windows, the default number is limited due to some other perf issues. Once those are fixed, the same heuristic
86
+ // could apply there as well.
84
87
85
88
int processorCount = Environment . ProcessorCount ;
86
89
if ( OperatingSystem . IsWindows ( ) || processorCount <= 32 )
87
90
{
88
91
return Math . Min ( processorCount , 16 ) ;
89
92
}
90
93
91
- return ( processorCount + 1 ) / 2 ;
94
+ return processorCount / 2 ;
92
95
}
93
96
}
You can’t perform that action at this time.
0 commit comments