arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1704.00605cs.MScs.PF
收藏

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

Faster Base64 Encoding and Decoding Using AVX2 Instructions

Université du Québec (TELUQ)(魁北克大学(特鲁卢))

Wojciech Muła, Daniel Lemire

AI总结:

本文利用AVX2指令提升Base64编码和解码效率,编码速度提升约10倍,解码速度提升约7倍,同时保持规范性与错误报告功能。

摘要:

Web开发者使用Base64格式将图片、字体、声音等资源直接嵌入HTML、JavaScript、JSON和XML文件中。我们估计每天解码 billions 的Base64消息。我们旨在提高Base64编码和解码的效率。与最先进的实现相比,我们分别将编码速度(约10倍)和解码速度(约7倍)提升。我们通过使用最近Intel处理器可用的单指令多数据(SIMD)指令(AVX2)实现这些良好结果。我们的加速软件遵循规范,并在遇到Base64集外的字符时报告错误。它作为免费软件在线提供,遵循宽松的许可协议。

英文摘要:

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 (~10x) and the decoding (~7x). We achieve these good results by using the single-instruction-multiple-data (SIMD) 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.

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

↑