Menu

yolow64 0.4.0: AVX-512 Completes the Picture — 164 GB/s Encode, 101 GB/s Decode
📰

yolow64 0.4.0: AVX-512 Completes the Picture — 164 GB/s Encode, 101 GB/s Decode

DEV Community: rust·ゴエンチョウ·9 days ago
#jak9dLP2
#devtorust#devto#dev#tier#avx2
Long article (804 words) — no AI summary yet.
Reading 0:00
15s threshold

yolow64 is a Rust Base64 codec with zero runtime dependencies and runtime-dispatched SIMD kernels. Yesterday's 0.3.1 took the AVX2 kernels about as far as they go: 21 GB/s with every byte validated. Version 0.4.0, released today, adds the tier that was missing — hand-scheduled AVX-512 assembly — and turns the codec into a five-tier design that picks the best kernel for whatever CPU it lands on. This is the complete form of the library.

The problem: one binary, three generations of CPU

A data pipeline ships one build. The fleet underneath it is not one machine: a Zen 5 node here, an older Skylake-SP there, an AVX2-only box in the corner. Compile for the newest tier and the old nodes can't run it; compile for the baseline and the new silicon idles. AVX2 processes 32 bytes per instruction — AVX-512 doubles that to 64 and adds exactly the byte-manipulation instructions Base64 has always wanted.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.