perf(mojo): vendor Ember/sonic 8-digit SWAR and two-digit itoa - #145
Merged
Conversation
Re-vendor gld-json #9. Telemetry n=1 deser 2490→1678 ns.
This was referenced Sep 9, 2026
Closed
leo-gan
added a commit
that referenced
this pull request
Sep 9, 2026
Vendor gld-json one-pass number parse, 4-digit SWAR, Ember ctz SIMD scan, digit-pair itoa, and skip of the short-dtoa exact search. n=1 encode cap is 1024 so list ensure does not resize. Decode lists are pre-sized to n. Official 2026-09-09-160305 vs #145: telemetry n=1 deser 1678→1233 (1.35× Ember), n=100 167450→106745 (1.48×). Telemetry n=1 ser 2020→1319 (1.27×), n=100 195051→117007 (1.53×). Message n=1 deser 406→348 (1.55× Ember). Fidelity 1.0. Version stays 0.2.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Official all-single vs #144 (median skip warmup):
Fidelity 1.0. Stem
2026-09-09-153729.Validation
test_roundtrip.mojook