Skip to content

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

Open
patrick-immometrica wants to merge 1 commit into
hyperium:masterfrom
patrick-immometrica:perf-chunked-decode-read-byte
Open

patrick-immometrica wants to merge 1 commit into
hyperium:masterfrom
patrick-immometrica:perf-chunked-decode-read-byte

Conversation

@patrick-immometrica

Copy link
Copy Markdown

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.

This branch has not been deployed

No deployments
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