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.
翻译:大部分文本以UTF-8格式存储,在摄入时必须经过验证。我们提出了查找算法,利用常用的SIMD指令,其性能比许多库和语言中使用的UTF-8验证例程高出10倍以上。为确保可复现性,我们的工作已作为开源软件免费提供。