Skip to content

Releases

v0.3.0 — hand-tuned parser with inline and SIMD scanning

Choose a tag to compare

@SMC17 SMC17 released this 28 May 01:45

Errata (2026-11-12). The "~5x faster than the HF Rust upstream" figure below was never reconciled: the ratio does not follow from the timings shown, and no script reproduces it on a current commit. Treat it as withdrawn until #4 re-measures both parsers on one machine. The "OoM-better-than-Meta-OSS" framing is withdrawn too.

Inline + SIMD scan optimisations on top of the v0.2 hand-tuned parser. ~5x faster than the HF Rust upstream (up from 3.2x at v0.2) on the Llama-shape fixture (Zig ~10μs vs Rust ~50μs median).

  • SIMD byte-class scan in the parser hot loop (token boundary detection in 16-byte vector lanes)
  • Inlining hints on the per-token branch arms
  • Tests pass unchanged; correctness-equivalent to v0.2

Honest non-claim: the OoM-better-than-Meta-OSS bar is 10x; we are at 5x. v0.4 path is real SIMD structural-JSON scan (simdjson-style); the inline+SIMD here is a stepping stone.

Full changelog: CHANGELOG.md