Skip to content

perf(text): evaluate adjacent-texel SIMD - #10

Merged
thejustinwalsh merged 2 commits into
feat/mtsdf-baker-profilingfrom
feat/mtsdf-adjacent-texel-simd
Aug 4, 2026
Merged

perf(text): evaluate adjacent-texel SIMD#10
thejustinwalsh merged 2 commits into
feat/mtsdf-baker-profilingfrom
feat/mtsdf-adjacent-texel-simd

Conversation

@thejustinwalsh

@thejustinwalsh thejustinwalsh commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add feature-gated scalar-tile and adjacent-texel SIMD MTSDF kernels without changing the production kernel
  • extend the Node and Chromium runners to compare all five candidates with exact oracle and allocation checks
  • record complete Inter, browser timing, Wasm size evidence, and the rejection decision in canonical package docs
  • scope experimental compiled-module bytes to the recorded host while keeping portable quality evidence exact everywhere
  • refresh this layer's fail-closed package-size provenance

Decision

Keep the scalar kernel in production. Adjacent SIMD improved the bounded Chromium median by 0.9% (28.700 ms versus 28.965 ms), did not produce a stable Node advantage, and increased optimized Wasm by 20.7% and Brotli size by 11.4%.

Verification

  • complete Inter: 2,937 slots, 2,915 generated glyphs, 22 exact rejected IDs, exact composite identity
  • every host rebuilds all five variants and must retain target features, zero imports, seven native-oracle hashes, allocation counts, and steady-state memory behavior
  • recorded-host module bytes are exact; foreign-host optimized/gzip/Brotli measurements must remain under per-variant ceilings and carry complete SHA-256 identities
  • @pmndrs/text full tests, Rust unit tests, clippy with warnings denied, and fuzz smoke pass
  • benchmark unit: 45 files / 257 tests; script tests: 3 passed
  • package-size, root typecheck, lint, format, and OKF validation pass

Stack

Depends on #8. No experimental kernel or runtime toggle ships from this PR.

@thejustinwalsh
thejustinwalsh force-pushed the feat/mtsdf-adjacent-texel-simd branch from b120e37 to c7c586a Compare August 1, 2026 08:20
@thejustinwalsh
thejustinwalsh force-pushed the feat/mtsdf-adjacent-texel-simd branch from c7c586a to e7602ba Compare August 1, 2026 08:49
@thejustinwalsh
thejustinwalsh force-pushed the feat/mtsdf-adjacent-texel-simd branch 2 times, most recently from 2fe73ac to 34e6bbb Compare August 1, 2026 15:44
@thejustinwalsh
thejustinwalsh force-pushed the feat/mtsdf-adjacent-texel-simd branch from 34e6bbb to 2ea5be9 Compare August 1, 2026 16:59
@thejustinwalsh
thejustinwalsh marked this pull request as ready for review August 1, 2026 19:33
@thejustinwalsh
thejustinwalsh force-pushed the feat/mtsdf-adjacent-texel-simd branch from 2ea5be9 to 2a37ff2 Compare August 4, 2026 01:44
@thejustinwalsh
thejustinwalsh merged commit cb80bf7 into main Aug 4, 2026
1 of 2 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