Menu

yolowzstd 0.1.3: 2.37 Faster at Level 9, Better Ratio Too — in Pure Safe Rust
📰

yolowzstd 0.1.3: 2.37 Faster at Level 9, Better Ratio Too — in Pure Safe Rust

DEV Community: rust·ゴエンチョウ·8 days ago
#JfSmGhQx
#devtorust#devto#dev#levels#level
Long article (758 words) — no AI summary yet.
Reading 0:00
15s threshold

yolowzstd is a Zstandard (RFC 8878) encoder and decoder written in 100% safe Rust — #![forbid(unsafe_code)] , zero runtime dependencies. Version 0.1.3, released today, reworks the encoder at every level band and the entropy layer underneath it. The mid levels get a new matcher, the high levels get an optimal parser, the fast levels learn to skip what won't compress, and decoding speeds up by up to 29.5%.

The problem: the middle levels were the worst of both worlds

Take a concrete workload: a Rust archival pipeline. Data lands all day — logs, JSON dumps, fetched documents — and gets compressed for storage, then decompressed every time anything reads it back. You chose a pure-Rust zstd because the codebase forbids unsafe and you don't want a C dependency in the build.

Before this release, the level dial had a dead zone. Level 9, the natural "balance" setting, encoded Silesia at 17.1 MB/s — too slow to use — while delivering a ratio (3.48×) that didn't justify the wait. High levels were slower still.…

Continue reading — create a free account

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