Update CI configuration#1
Merged
Merged
Conversation
haga-rak
added a commit
that referenced
this pull request
Feb 12, 2024
* Update CI configuration * Remove front build from pull-request
haga-rak
added a commit
that referenced
this pull request
Apr 12, 2026
…rker Both workers allocated a fresh byte[MaxHeaderSize] per stream (16 KB default) to accumulate HEADERS/CONTINUATION fragments before HPACK decode. Allocation sampling showed this was the #1 byte[] allocator across all four throughput benchmark cases (28-48% of bytes, even on the H1 downstream path since upstream is ALPN-negotiated to H2). Route through ArrayPool<byte>.Shared: rent on first fragment (with grow for oversize responses in StreamWorker), return on Dispose. The decoded headers (H2Helper.DecodeAndAllocate, DecodeTrailerFields) produce fresh char buffers and HeaderField lists — no aliasing back to the pooled bytes, so returning at stream end is safe. Regression test H2LargeHeaderTests exercises the grow path (~30 KB response headers across 20 sequential requests) and the fast-path rent/return churn (50 sequential requests) to catch double-return or prefix-copy bugs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.