Change epoll thread count (#35800)
authorAdam Sitnik <adam.sitnik@gmail.com>
Thu, 7 May 2020 18:29:52 +0000 (20:29 +0200)
committerGitHub <noreply@github.com>
Thu, 7 May 2020 18:29:52 +0000 (20:29 +0200)
commit88a78d29bea1803679dbf9353fb951a954729829
tree79be247513ca93f072c7f4ae3b0cdfb840420a67
parent08b244ed43b1684d8ee1fce9b6ed0e913f4cdba4
Change epoll thread count (#35800)

* use struct wrapper for better perf

* check the most common case first

* don't access static variable in a loop

* use Span instead of raw pointers

* change the heuristic, single epoll thread is not always enough

* simplify the heuristic and add a comment

* apply the naming suggestions
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncContext.Unix.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketAsyncEngine.Unix.cs