← 输入框|github.com|刷新
Skip to content

Reuse plain frame bodies during serialization - #177

Open
notatallshaw wants to merge 1 commit into
python-hyper:masterfrom
notatallshaw:perf/reuse-plain-frame-body-20261026
Open

notatallshaw wants to merge 1 commit into
python-hyper:masterfrom
notatallshaw:perf/reuse-plain-frame-body-20261026

Conversation

@notatallshaw

Copy link
Copy Markdown

Unpadded DATA and HEADERS serialization copies the complete body while joining it with empty fields, even though no framing data is added.

Avoid that copy for exact bytes bodies. Replaying the 40 affected frame operations from a local HTTP/2 capture is about 7% faster (99% interval: about 3% to 9%).

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