Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Two Stream.Read/WriteAsync improvements#5534

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:port_stream_to_corefx
Jan 20, 2016
Merged

Two Stream.Read/WriteAsync improvements#5534
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:port_stream_to_corefx

Conversation

@stephentoub
Copy link
Copy Markdown
Member

A logical port of two of the three fixes in dotnet/coreclr#2724 (the third to avoid Begin/End isn't relevant here, as the BeginEnd methods don't exist). Makes it so that Read/WriteAsync calls are serialized asynchronously rather than synchronously, and so that Wait()'ing on a Read/WriteAsync task may be able to inline the execution onto the current thread. This also reduces allocations when calling Read/WriteAsync (though there are still more optimizations that could be done).

cc: @jkotas, @AlfredoMS, @ericstj

A logical port of two of the three fixes in dotnet/coreclr#2724.  Makes it so that Read/WriteAsync calls are serialized asynchronously rather than synchronously, and so that Wait()'ing on a Read/WriteAsync task may be able to inline the execution onto the current thread.  This also reduces allocations when calling Read/WriteAsync (though there are still more optimizations that could be done).
@jkotas
Copy link
Copy Markdown
Member

jkotas commented Jan 19, 2016

LGTM

@stephentoub
Copy link
Copy Markdown
Member Author

@dotnet-bot test this please

stephentoub added a commit that referenced this pull request Jan 20, 2016
Two Stream.Read/WriteAsync improvements
@stephentoub stephentoub merged commit fb4c5ea into dotnet:master Jan 20, 2016
@stephentoub stephentoub deleted the port_stream_to_corefx branch January 20, 2016 04:18
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…_corefx

Two Stream.Read/WriteAsync improvements

Commit migrated from dotnet/corefx@fb4c5ea
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants