Fixing Ill-Formed UTF-16 Strings With SIMD, 9x faster
lemire · x · 2026-08-26
Daniel Lemire published a new paper on fixing ill-formed UTF-16 strings using SIMD instructions (ARM NEON and x64 SSE/AVX2/AVX-512). It achieves 18.9 GB/s on Apple M4 and 7.5 GB/s on Intel Ice Lake, using as little as 0.4 instructions per byte, up to nine times faster than the old method. The code is in Chromium browsers, and String.prototype.toWellFormed in Node.js 25 is about five times faster.
Related event: SIMD Repairs Malformed UTF-16 Strings 9x Faster(2 posts)→
More from Infra
- open-daytona: rootless gVisor sandbox pool runs 1,536 concurrent agent-RL sandboxes on Slurm — victor_explore · 2026-11-30
- Notes on 'Looking Back at Postgres': Extensibility, No WAL, Open Source — sh_reya · 2026-11-30
- NRDC concedes BAAJA makes data centers pay grid costs, countering 'giveaway' claim — zacharynado · 2026-11-30
- NIDO 0.1.131: A Fully Offline Phone AI Assistant With No Account, No Cloud, No Analytics — NIDO_007 · 2026-11-30
- Ibiden to spend ~¥2T on four new plants as AI chip substrate demand extends past 2030 — BenBajarin · 2026-11-30
- Simulated FP64 matmul runs 83x faster than native on NVIDIA B300, ETH Zurich paper shows — JiliJeanlouis · 2026-11-30