Skip to content

perf(http1): read chunk framing bytes without split_to - #4272

Merged
seanmonstar merged 1 commit into
hyperium:masterfrom
patrick-immometrica:perf-chunked-decode-read-byte
Nov 16, 2026
Merged

seanmonstar merged 1 commit into
hyperium:masterfrom
patrick-immometrica:perf-chunked-decode-read-byte

Conversation

@patrick-immometrica

Copy link
Copy Markdown
Contributor

The chunked decoder read every size, CRLF and trailer byte through read_mem(1), paying a split_to().freeze() per byte. Add read_byte to MemRead and use it in the byte! macro. About 3x faster decoding for small chunks.

The chunked decoder read every size, CRLF and trailer byte through
read_mem(1), paying a split_to().freeze() per byte. Add read_byte to
MemRead and use it in the byte! macro. About 3x faster decoding for
small chunks.

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@seanmonstar
seanmonstar merged commit 00a85ad into hyperium:master Nov 16, 2026
24 checks passed
@patrick-immometrica
patrick-immometrica deleted the perf-chunked-decode-read-byte branch November 16, 2026 18:34
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.

2 participants