Skip to content

Automated fix for refs/heads/hpack_use_vector#1

Open
github-actions[bot] wants to merge 2 commits intohpack_use_vectorfrom
create-pull-request/patch-b8e8d7499c
Open

Automated fix for refs/heads/hpack_use_vector#1
github-actions[bot] wants to merge 2 commits intohpack_use_vectorfrom
create-pull-request/patch-b8e8d7499c

Conversation

@github-actions
Copy link
Copy Markdown

PanCakes to the rescue!

We noticed that our 'sanity' test was going to fail, but we think we can fix that automatically, so we put together this PR to do just that!

If you'd like to opt-out of these PR's, add yourself to NO_AUTOFIX_USERS in .github/workflows/pr-auto-fix.yaml

dpcollins-google and others added 2 commits April 13, 2022 13:07
…d::vector for its ring buffer instead.

Before this change, it uses 6.2KiB by default, 2/3 of the size of grpc_chttp2_transport. https://screenshot.googleplex.com/6qdcybty2oCsGjG

After this change, it uses 120 bytes https://screenshot.googleplex.com/4xGWKmZZz68VE4F

This class uses up substantial amounts of memory, as it is allocated on a per-stream basis. This should reduce the size of grpc_chttp2_stream substantially

It should cause a significant memory reduction, as the HPack extension table should almost never be fully populated in terms of number of entries, especially since common headers already exist in a static table and entries are highly likely to take more memory than the absolute minimum.
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