Base64 encoding and decoding at almost the speed of a memory copy
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.
- ▪Base64 encoding is commonly used to embed binary data like images in text-based formats such as HTML, JSON, and email.
- ▪The new method achieves performance near that of memcpy, especially when data exceeds the processor's L1 cache.
- ▪The approach uses AVX-512 SIMD instructions and generates several times fewer instructions than previous SIMD-based codecs.
- ▪The implementation can be adapted to any base64 variant by modifying constants, including at runtime.
Hacker News (Newest) files mainly under programming. We currently carry 5,306 of its stories.
Story provenance
Source · retrieval · rights · ranking — open for full record
inspect →
Story provenance
Attribution is not the same as permission. This drawer separates discovery metadata, excerpts, WeSearch-generated summaries, reuse status, and whether the publisher receives the visit. Nothing here claims a legal grant the publisher has not made.
Record
| Original publisher | arXiv.org |
| Canonical URL | https://arxiv.org/abs/1910.05109 |
| Publication time | Sun, 17 May 2026 06:28:41 +0000 |
| Retrieval time | 2026-05-17T07:03:59.097Z |
| Last seen | 2026-05-17T07:03:59.097Z |
| Headline source | Publisher (no WeSearch rewrite) |
| Excerpt source | publisher body |
| Excerpt method | First ~120 words (~800 chars) of extracted publisher body, fair-use limited. |
| Summary | WeSearch · cerebras-chat (WeSearch summarizer) |
| Summary source text | contentText |
| Citation coverage | Summary is a WeSearch-generated derivative; primary citation is the original publisher URL. |
| Cluster | qNvn3CxvQjjo |
| Cluster logic | Grouped by semantic title/content similarity across sources within a rolling window. Same-publisher template collisions are excluded from coverage comparison. |
| Ranking reason | Story pages are not engagement-ranked. Hub feeds use recency, with optional source-diversified chronological ordering (cap consecutive stories per source). No personalized ranking. |
| Publisher visit | Yes — open original |
| Substitutes article? | No — link-out required for full text |
Rights status (four layers)
WeSearch handling by dimension
| Indexing | May the item be indexed (stored, ranked, made findable)? | Allowed |
| Snippet | May a short excerpt of the publisher's text be shown? | Allowed |
| AI summary | May WeSearch generate its own short summary of the article? | Limited |
| Retrieval / RAG | May the content be exposed for third-party retrieval-augmented generation? | Not asserted |
| Model training | May the content be used to train AI models? | Not asserted |
| Commercial reuse | May the content be reused commercially? | Not permitted |
Basis: Derived from the published RSS/Atom feed. Contact: [email protected]. Reviewed: 2026-07-24.
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.