WeSearch

Base64 encoding and decoding at almost the speed of a memory copy

·3 min read · 0 reactions · 0 comments · 15 views
#computer science#data encoding#simd#avx-512#performance optimization#Wojciech Muła#Daniel Lemire#Intel#arXiv
Base64 encoding and decoding at almost the speed of a memory copy
⚡ TL;DR · AI summary

Researchers have developed a method to perform base64 encoding and decoding at speeds close to that of a memory copy on modern Intel processors. The technique leverages the AVX-512 SIMD instruction set to significantly reduce the number of instructions required compared to prior approaches. The implementation is adaptable to various base64 variants by changing constants, even at runtime.

Key facts
Original article
arXiv.org
Read full at arXiv.org →
Opening excerpt (first ~120 words) tap to expand

Computer Science > Distributed, Parallel, and Cluster Computing arXiv:1910.05109 (cs) [Submitted on 2 Oct 2019] Title:Base64 encoding and decoding at almost the speed of a memory copy Authors:Wojciech Muła, Daniel Lemire View a PDF of the paper titled Base64 encoding and decoding at almost the speed of a memory copy, by Wojciech Mu{\l}a and 1 other authors View PDF Abstract:Many common document formats on the Internet are text-only such as email (MIME) and the Web (HTML, JavaScript, JSON and XML). To include images or executable code in these documents, we first encode them as text using base64. Standard base64 encoding uses 64~ASCII characters: both lower and upper case Latin letters, digits and two other symbols.

Excerpt limited to ~120 words for fair-use compliance. The full article is at arXiv.org.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from arXiv.org