Skip to content

perf(mojo): vendor native 32-wide SIMD scan - #147

Merged
leo-gan merged 1 commit into
masterfrom
perf-native-simd
Sep 9, 2026
Merged

perf(mojo): vendor native 32-wide SIMD scan#147
leo-gan merged 1 commit into
masterfrom
perf-native-simd

Conversation

@leo-gan

@leo-gan leo-gan commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

Vendor Ember-style simd_width_of[Byte] scan (32 on this host) and inlined SWAR helpers.

Measure (official 2026-09-09-161131 vs #146)

Message n=1 ser 250→218, deser 348→331 (1.53× Ember). Document n=1 deser 1190→1048. 11/20 cells ≥2% faster.

Validation

pixi run test in mojo/ and official all-single stem 2026-09-09-161131.

Vendor gld-json SCAN_W = simd_width_of[uint8] (32 on AVX2) and inlined
SWAR helpers.

Official 2026-09-09-161131 vs #146: message n=1 ser 250→218, deser
348→331 (1.53× Ember). Document n=1 deser 1190→1048.

Version stays 0.2.0.
@leo-gan
leo-gan merged commit 95dfc04 into master Sep 9, 2026
15 checks passed
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