mgravell / Pipelines.Sockets.Unofficial

.NET managed sockets wrapper using the new "Pipelines" API
Other
416 stars 54 forks source link

Use a static DedicatedThreadPoolPipeScheduler by default #15

Closed davidfowl closed 6 years ago

davidfowl commented 6 years ago

If multiple libraries use this library in an application, it'll end up spinning up a bunch of threads per use which would be less efficient that sharing them.

mgravell commented 6 years ago

So... you'd want something like DedicatedThreadPoolPipeScheduler.Default ?

davidfowl commented 6 years ago

Yea and that should be the default and libraries can opt into more isolation if they want to.