We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
gRPC's compression code allocates a bytes.Buffer for each sent message. This code is responsible for 25% of RAM allocations in my program.
bytes.Buffer
grpc-go/rpc_util.go
Line 658 in d41b01d
Reuse bytes.Buffer using a sync.Pool.
sync.Pool
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Use case(s) - what problem will this feature solve?
gRPC's compression code allocates a
bytes.Buffer
for each sent message. This code is responsible for 25% of RAM allocations in my program.grpc-go/rpc_util.go
Line 658 in d41b01d
Proposed Solution
Reuse
bytes.Buffer
using async.Pool
.Alternatives Considered
Additional Context
The text was updated successfully, but these errors were encountered: