Skip to content

Inline binary tag parsing for performance #1390

Open
emcfarlane wants to merge 4 commits into
mainfrom
ed/tag-inline-perf
Open

Inline binary tag parsing for performance #1390
emcfarlane wants to merge 4 commits into
mainfrom
ed/tag-inline-perf

Conversation

@emcfarlane
Copy link
Copy Markdown
Contributor

@emcfarlane emcfarlane commented Apr 22, 2026

This inlines the binary tag parsing for performance. A simple benchmarks on Node v22 show ~15-35% higher throughput on 1-byte tag loop (common case).

Follow up to #1387

@emcfarlane emcfarlane changed the title Document BinaryReader.tag() validation change and inline for performance Inline binary tag parsing for performance Apr 22, 2026
@timostamm
Copy link
Copy Markdown
Member

Thanks, @emcfarlane. Lets look at this along with other changes. See #333 (comment)

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