arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2010.03090cs.DB
收藏

在每字节少于一条指令内验证UTF-8

Validating UTF-8 In Less Than One Instruction Per Byte

Microsoft(微软);DOT-Lab Research Center, Université du Québec (TELUQ)(魁北克大学特卢克斯分校DOT实验室研究中心)

John Keiser, Daniel Lemire

AI总结:

本文提出一种利用SIMD指令的高效UTF-8验证算法,性能优于多数库和语言中的验证方法,且开源以确保可重复性。

摘要:

大多数文本以UTF-8格式存储,必须在输入时进行验证。我们提出了一个查找算法,使用常见SIMD指令,性能比许多库和语言中使用的UTF-8验证程序高出超过10倍。为确保可重复性,我们的工作作为开源软件 freely available。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑