<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Faster Base64 Encoding and Decoding Using AVX2 Instructions · HackerPapers discussions</title><link>https://hackerpaper.kaipfister.de/p/1704.00605/</link><description>Collected HN comments and submissions linking this paper.</description><language>en</language><lastBuildDate>Mon, 02 Nov 2026 11:16:22 GMT</lastBuildDate><atom:link href="https://hackerpaper.kaipfister.de/p/1704.00605/feed.xml" rel="self" type="application/rss+xml" /><item><title>Faster Base64 Encoding and Decoding Using AVX2 Instructions — mentioned by boomlinde</title><link>https://news.ycombinator.com/item?id=21460946</link><guid isPermaLink="false">urn:hackerpapers:mention:1704.00605:21460946</guid><pubDate>Wed, 06 Nov 2019 09:29:21 GMT</pubDate><description>&lt;p&gt;&amp;gt; Why is that an achievement? There are tables in the paper comparing its speed to other implementations. This is more than an order of magnitude faster than the implementation used in Chrome, and for small data more than twice as fast as their previous AVX2 based implementation (https://arxiv.org/abs/1704.00605). The paper even notes that in some cases, for large inputs, it&amp;#x27;s decoding base64 faster than you could memcpy the data for the simple reason that it needs only write 6/8ths of the bytes. In their tests, it&amp;#x27;s only when the data fits in the tiny L1 cache that memcpy is consistently…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1704.00605/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.MS</category></item><item><title>Faster Base64 Encoding and Decoding Using AVX2 Instructions — mentioned by taspeotis</title><link>https://news.ycombinator.com/item?id=21460295</link><guid isPermaLink="false">urn:hackerpapers:mention:1704.00605:21460295</guid><pubDate>Wed, 06 Nov 2019 06:50:27 GMT</pubDate><description>&lt;p&gt;The authors have been doing good work in this area for a while: https://arxiv.org/abs/1704.00605&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1704.00605/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.MS</category></item><item><title>Faster Base64 Encoding and Decoding Using AVX2 Instructions — mentioned by dragontamer</title><link>https://news.ycombinator.com/item?id=16172447</link><guid isPermaLink="false">urn:hackerpapers:mention:1704.00605:16172447</guid><pubDate>Wed, 17 Jan 2018 22:04:11 GMT</pubDate><description>&lt;p&gt;https://arxiv.org/abs/1704.00605 In short, they spend roughly (EDIT: Herp-derp) 1/5th a cycle per byte of base64 through the use of AVX2 instructions to encode / decode base64. So one-cycle every 5 bytes. This includes robust error checking (allegedly) --------- Because SIMD-based execution was so successful in this example, I do wonder if a GPGPU implementation would be worthwhile. If some very big data were Base64-encoded / decoded (like MBs worth), then would it be worthwhile to spend a costly PCIe Transaction to transfer the data to the GPU and back? Something like an email-attachment is…&lt;/p&gt;&lt;p&gt;&lt;a href="https://hackerpaper.kaipfister.de/p/1704.00605/"&gt;Paper and discussion history&lt;/a&gt;. A mention is not an endorsement.&lt;/p&gt;</description><category>cs.MS</category></item></channel></rss>
