-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area-System.Net.SecurityenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionstenet-performancePerformance related issuePerformance related issue
Milestone
Description
In usage a SslStream normally has very many ReadAsync calls made on it. (Use case WebSockets/SignalR over TLS)
Using the ValueTask overloads for SslStream read allocates 2x AsyncStateMachineBox per read (when data is not immediately available)
However it could allocate once; backing with an IValueTaskSource objects that get allocated for the first async and reused when the read goes async again.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Net.SecurityenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionstenet-performancePerformance related issuePerformance related issue
