arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.10433cs.DCcs.DS
收藏

使用 SIMD 指令实现每秒数十亿 Unicode 字符的转码

Transcoding Billions of Unicode Characters per Second with SIMD Instructions

Daniel Lemire, Wojciech Muła

AI总结:

针对 UTF-8 与 UTF-16 转码难以充分利用商用 CPU 的问题,本文提出面向 SIMD 指令的转码算法,在 x64 和 ARM 系统上显著提升转码速度,并开源可复现的库。

摘要:

在软件中,文本通常以 Unicode 格式(UTF-8 和 UTF-16)表示。我们经常需要将文本从一种格式转换为另一种格式,这一过程称为转码。主流转码函数的速度低于最先进的磁盘和网络。这些转码函数几乎没有利用商用处理器上提供的单指令多数据(SIMD)指令。通过为 SIMD 指令设计转码算法,我们使当前系统(x64 和 ARM)上的转码速度成倍提升。为确保可复现性,我们将软件作为开源库免费提供。

英文摘要:

In software, text is often represented using Unicode formats (UTF-8 and UTF-16). We frequently have to convert text from one format to the other, a process called transcoding. Popular transcoding functions are slower than state-of-the-art disks and networks. These transcoding functions make little use of the single-instruction-multiple-data (SIMD) instructions available on commodity processors. By designing transcoding algorithms for SIMD instructions, we multiply the speed of transcoding on current systems (x64 and ARM). To ensure reproducibility, we make our software freely available as an open source library.

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

↑