Skip to content

okhttp: Optimize HPACK to index :path#12799

Open
kenkangxgwe wants to merge 1 commit intogrpc:masterfrom
kenkangxgwe:hpack-optimize-path
Open

okhttp: Optimize HPACK to index :path#12799
kenkangxgwe wants to merge 1 commit intogrpc:masterfrom
kenkangxgwe:hpack-optimize-path

Conversation

@kenkangxgwe
Copy link
Copy Markdown

Allow the :path pseudo-header to be added to the HPACK dynamic table in the gRPC-Java OkHttp transport.

In gRPC, the :path header typically represents the service and method name (e.g., /package.Service/Method), which is constant across multiple calls to the same method. The previous HPACK implementation, inherited from OkHttp, did not index :path, treating it as potentially highly variable.

By allowing :path to be indexed, subsequent gRPC calls to the same method can benefit from HPACK's dynamic table, reducing header size.

Allow the :path pseudo-header to be added to the HPACK dynamic table in
the gRPC-Java OkHttp transport.

In gRPC, the :path header typically represents the service and method name
(e.g., /package.Service/Method), which is constant across multiple calls to
the same method. The previous HPACK implementation, inherited from OkHttp,
did not index :path, treating it as potentially highly variable.

By allowing :path to be indexed, subsequent gRPC calls to the same method
can benefit from HPACK's dynamic table, reducing header size.
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 6, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: kenkangxgwe / name: Mingyu Kang (ed07722)

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.

1 participant