Pipelines.Sockets.Unofficial icon indicating copy to clipboard operation
Pipelines.Sockets.Unofficial copied to clipboard

Set unsafeSuppressExecutionContextFlow on SocketAsyncEventArgs

Open xqrzd opened this issue 3 years ago • 3 comments

Is it safe to set that option on SocketAsyncEventArgs?

xqrzd avatar Oct 07 '20 01:10 xqrzd

Where are you seeing UnsafeSuppressExecutionContextFlow? What is the context here?

mgravell avatar Oct 07 '20 05:10 mgravell

Sorry this was a terribly worded issue. There's a new parameter that can be passed to SocketAsyncEventArgs in .NET 5 to suppress execution context, https://github.com/dotnet/runtime/pull/706. Could this project set that value to get a bit of extra performance?

xqrzd avatar Oct 07 '20 13:10 xqrzd

Ah, k; interesting question. I don't know - it would need investigation.

On Wed, 7 Oct 2020 at 14:20, xqrzd [email protected] wrote:

Sorry this was a terribly worded issue. There's a new parameter that can be passed to SocketAsyncEventArgs in .NET 5 to suppress execution context, dotnet/runtime#706 https://github.com/dotnet/runtime/pull/706. Could this project set that value to get a bit of extra performance?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mgravell/Pipelines.Sockets.Unofficial/issues/57#issuecomment-704930728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEHMCPGW26CSVP2GSZW5TSJRTIZANCNFSM4SGYJKIA .

-- Regards,

Marc

mgravell avatar Oct 07 '20 16:10 mgravell