Skip to content

Client serialization optimizations - #1033

Merged
JamesNK merged 2 commits into
grpc:masterfrom
JamesNK:jamesnk/client-writer-optimization
Sep 2, 2020
Merged

JamesNK merged 2 commits into
grpc:masterfrom
JamesNK:jamesnk/client-writer-optimization

Conversation

@JamesNK

@JamesNK JamesNK commented Aug 30, 2020 •

Copy link
Copy Markdown
Member

Fixes #784

  • Reuse serialization contexts when streaming
  • Initialize write buffer initial capacity
  • Write directly to pooled array when length is known and there is no compression

@JamesNK
JamesNK requested a review from JunTaoLuo August 30, 2020 02:26
Comment thread src/Grpc.Net.Client/Internal/GrpcCallSerializationContext.cs Outdated
@JamesNK
JamesNK force-pushed the jamesnk/client-writer-optimization branch from cd8622b to c4310df Compare September 2, 2020 02:49
@JamesNK
JamesNK force-pushed the jamesnk/client-writer-optimization branch from c4310df to 88bbd65 Compare September 2, 2020 03:22
@JamesNK
JamesNK merged commit b10480c into grpc:master Sep 2, 2020
@JamesNK
JamesNK deleted the jamesnk/client-writer-optimization branch September 2, 2020 03:54
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.

Optimize header allocation when using array writer

2 participants