vix.ing · top · new · best · stats

Validating UTF-8 In Less Than One Instruction Per Byte

2020/10/06 by John Keiser, Daniel Lemire · 2 voices
Computer Science · #cs.DB

paper · pdf · doi:10.1002/spe.2920

arxiv published 2020/10/06 · arxiv updated 2026/04/21

Abstract

The majority of text is stored in UTF-8, which must be validated on ingestion. We present the lookup algorithm, which outperforms UTF-8 validation routines used in many libraries and languages by more than 10 times using commonly available SIMD instructions. To ensure reproducibility, our work is freely available as open source software.

Cited by

Discussions

Related