Skip to content
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

Optimize RPC traffic for IAsyncEnumerable<T> #389

Merged
merged 3 commits into from Dec 2, 2019

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented Nov 28, 2019

In particular:

  • Remove any need to dispose of an enumerable's handle if it was fully enumerated or if any error occurred.
  • Allow for including values in the initial message that discloses the handle.

Also use RFC 2119 key words in protocol spec.

Closes #384

@AArnott AArnott added this to the v2.3 milestone Nov 28, 2019
@AArnott AArnott self-assigned this Nov 28, 2019
@codecov-io
Copy link

codecov-io commented Nov 28, 2019

Codecov Report

Merging #389 into master will increase coverage by 0.36%.
The diff coverage is 97.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #389      +/-   ##
==========================================
+ Coverage   90.49%   90.85%   +0.36%     
==========================================
  Files          46       46              
  Lines        3451     3555     +104     
==========================================
+ Hits         3123     3230     +107     
+ Misses        328      325       -3
Impacted Files Coverage Δ
src/StreamJsonRpc/Resources.Designer.cs 66.66% <100%> (+1.96%) ⬆️
src/StreamJsonRpc/MessagePackFormatter.cs 92.81% <100%> (+0.93%) ⬆️
src/StreamJsonRpc/JsonRpcExtensions.cs 100% <100%> (ø) ⬆️
src/StreamJsonRpc/ProxyGeneration.cs 99.7% <100%> (ø) ⬆️
src/StreamJsonRpc/JsonMessageFormatter.cs 92.93% <89.65%> (-0.31%) ⬇️
...pc/Reflection/MessageFormatterEnumerableTracker.cs 96.22% <96.7%> (+0.04%) ⬆️
src/StreamJsonRpc/Reflection/TrackerHelpers.cs 100% <0%> (+7.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d51bd85...50c37af. Read the comment docs.

In particular:

* Remove any need to dispose of an enumerable's handle if it was fully enumerated or if any error occurred.
* Allow for including values in the initial message that discloses the handle.

Also use RFC 2119 key words in protocol spec.
@AArnott AArnott marked this pull request as ready for review November 29, 2019 02:52
@AArnott AArnott merged commit 4549178 into microsoft:master Dec 2, 2019
@AArnott AArnott deleted the fix384 branch December 2, 2019 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IAsyncEnumerable<T> should serialize as an object with token to allow future features
3 participants