arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01662cs.DScs.AR
收藏

在 ARM 处理器上以每秒数十吉字节的速度扫描 HTML

Scanning HTML at Tens of Gigabytes per Second on ARM Processors

Daniel Lemire

AI总结:

本文研究利用 ARM 处理器上的 SIMD 指令加速 HTML 扫描,通过向量化分类方法实现比传统方法快 20 倍的性能,展示了 SIMD 算法优化浏览器性能的潜力。

摘要:

现代处理器拥有一次处理 16 字节或更多数据的指令,这些指令被称为 SIMD(单指令多数据)。近期进展已利用 SIMD 指令加速 JSON 和 base64 等常见互联网格式的解析。在 HTML 解析过程中,它们通过一种称为向量化分类的策略快速识别特定字符。我们回顾了这些技术,并将其与一种更快的替代方案进行了比较。我们测得,在最新的 ARM 处理器上,HTML 扫描性能相比传统方法提升了 20 倍。我们的研究结果凸显了基于 SIMD 的算法在优化 Web 浏览器性能方面的潜力。

英文摘要:

Modern processors have instructions to process 16 bytes or more at once. These instructions are called SIMD, for single instruction, multiple data. Recent advances have leveraged SIMD instructions to accelerate parsing of common Internet formats such as JSON and base64. During HTML parsing, they quickly identify specific characters with a strategy called vectorized classification. We review their techniques and compare them with a faster alternative. We measure a 20-fold performance improvement in HTML scanning compared to traditional methods on recent ARM processors. Our findings highlight the potential of SIMD-based algorithms for optimizing Web browser performance.

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

↑