grpc / grpc/grpc-java

Maybe make a custom Http2HeaderEncoder

Open
#1,873 2 comments 0 reactions 0 assignees View on GitHub
performance
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

Currently the default Netty Http2HeaderEncoder grabs an iterator from an Http2Headers objects and iterates over the values, adding them to the table and serializing them to a ByteBuf. We could save on a lot of allocations and cputime if we could pass an array directly in and skip Iterator. We don't even have to deal with the hpack portions of this since we can reuse that API independent of the Http2HeaderEncoder interface.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.