当前位置: X-MOL 学术ACM Trans. Web › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Faster Base64 Encoding and Decoding Using AVX2 Instructions
ACM Transactions on the Web ( IF 3.5 ) Pub Date : 2018-07-17 , DOI: 10.1145/3132709
Wojciech Muła 1 , Daniel Lemire 2
Affiliation  

Web developers use base64 formats to include images, fonts, sounds, and other resources directly inside HTML, JavaScript, JSON, and XML files. We estimate that billions of base64 messages are decoded every day. We are motivated to improve the efficiency of base64 encoding and decoding. Compared to state-of-the-art implementations, we multiply the speeds of both the encoding (≈ 10 ×0) and the decoding (≈ 7 ×). We achieve these good results by using the single-instruction-multiple-data instructions available on recent Intel processors (AVX2). Our accelerated software abides by the specification and reports errors when encountering characters outside of the base64 set. It is available online as free software under a liberal license.

中文翻译:

使用 AVX2 指令更快的 Base64 编码和解码

Web 开发人员使用 base64 格式将图像、字体、声音和其他资源直接包含在 HTML、JavaScript、JSON 和 XML 文件中。我们估计每天有数十亿条 base64 消息被解码。我们有动力提高 base64 编码和解码的效率。与最先进的实现相比,我们将编码(≈10×0)和解码(≈7×)的速度相乘。我们通过使用最新的英特尔处理器 (AVX2) 上可用的单指令多数据指令来实现这些良好的结果。我们的加速软件遵守规范并在遇到 base64 集之外的字符时报告错误。它在自由许可下作为免费软件在线提供。
更新日期:2018-07-17
down
wechat
bug