finds.dev

lemire/fastvalidate-utf-8

header-only library to validate utf-8 strings at high speeds (using SIMD instructions)

View on GitHub

★ 309CApache-2.0updated Mar 2024

// the take

A header-only C library for SIMD-accelerated UTF-8 validation, reaching 0.7 cycles/byte on SSE and 0.45 on AVX. It was a research proof-of-concept that directly led to the simdutf library. The authors say it plainly in the README: this is obsolete and you should use simdutf instead.

The benchmarks are honest and methodical — they compare against a scalar baseline and show exactly where the speedup comes from. The triple license (Apache/Boost/MIT) removes any friction for commercial use. The research paper backing it (Keiser & Lemire, 2021) gives the algorithm a real pedigree, not just a benchmark claim. The ASCII fast-path getting to 0.088 cycles/byte is genuinely useful for systems where most traffic is ASCII.

It is explicitly deprecated by its own author — the README leads with this. x64/SSE-only with no ARM support means it is dead on any modern Apple hardware or cloud ARM instance. The codebase has had essentially zero activity since 2022, so there will be no fixes for edge cases you might find. Anyone who adopts this instead of simdutf is making a maintenance problem for themselves.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
309
Forks
27
Language
C
License
Apache-2.0
Last commit
13 Mar 2024

// nearby

If fastvalidate-utf-8 isn't quite it.

All repos →