Artigo Acesso aberto Revisado por pares

Validating UTF‐8 in less than one instruction per byte

2020; Wiley; Volume: 51; Issue: 5 Linguagem: Inglês

10.1002/spe.2920

ISSN

1097-024X

Autores

John Keiser, Daniel Lemire,

Tópico(s)

Particle accelerators and beam dynamics

Resumo

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 single‐instruction‐multiple‐data instructions. To ensure reproducibility, our work is freely available as open source software.

Referência(s)