Skip to content

Update CI configuration#1

Merged
haga-rak merged 2 commits into
mainfrom
scafold/repair-ci
Jul 28, 2023
Merged

Update CI configuration#1
haga-rak merged 2 commits into
mainfrom
scafold/repair-ci

Conversation

@haga-rak
Copy link
Copy Markdown
Owner

No description provided.

@haga-rak haga-rak merged commit b5c1e00 into main Jul 28, 2023
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.
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