Skip to content

perf: Tweak reader varint32 and string cases#2220

Merged
dcodeIO merged 1 commit into
masterfrom
patch/reader-perf
May 3, 2026
Merged

perf: Tweak reader varint32 and string cases#2220
dcodeIO merged 1 commit into
masterfrom
patch/reader-perf

Conversation

@dcodeIO
Copy link
Copy Markdown
Member

@dcodeIO dcodeIO commented May 2, 2026

Slightly tweaks two reader hot paths: Reader#uint32 keeps buffer and position state local while reading varints, and Reader#string decodes directly from the backing buffer for non-Buffer readers.

@dcodeIO dcodeIO requested a review from alexander-fenster May 2, 2026 20:11
@dcodeIO dcodeIO merged commit 4076ea8 into master May 3, 2026
4 checks passed
@github-actions github-actions Bot mentioned this pull request May 2, 2026
@dcodeIO dcodeIO deleted the patch/reader-perf branch May 7, 2026 00:02
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