New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add ReadOnlySequence<byte> Overloads to Socket.SendAsync #27486
Comments
Agreed we should go through and look at doing this for the most common scenaros in 3.0. |
|
@AceHack would you create a complete proposal? you may have a look at https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/api-review-process.md for more info. |
@tarekgh I can do the proposal but I have a question should I make a proposal per new API or should there be an uber proposal like the Span version of this. I don't think we'll need support for ROS in all the places we have span support but there's more than one. |
I don't think we need to support ROS in all places support span. I was talking only about the proposed 2 APIs in this issue for Socket and Encoding per the required scenarios. I believe if ROS is needed in any other place, we should evaluate case by case. let me know if you disagree with that. |
I removed the |
Triage: @scalablecory floats around idea to use @davidfowl do you plan to work on the proposal and prototype to confirm perf benefit (e.g. on Kestrel some benchmark)? |
How would that work? It's not like you could stackalloc. Also this method is async so the implementation would need to synchronously copy to something on the heap just in case the call goes async. What am I missing?
What do you mean here? Would I add the API and test it out in Kestrel? |
We can replace this with #49941. We'd need this other API anyways since we'd need to transform the ReadOnlySequence into a |
See this gist for example usage.
https://gist.github.com/AceHack/786e558f14b2d9c0d46a1ea330c158f7
The text was updated successfully, but these errors were encountered: