Zstandard Across the Stack
oddurmagnusson
14 points
4 comments
April 02, 2026
Related Discussions
Found 5 related stories in 50.9ms across 3,471 title embeddings via pgvector HNSW
- Ministack (Replacement for LocalStack) kerblang · 183 pts · March 31, 2026 · 54% similar
- Show HN: WolfStack – Proxmox-like server management in a single Rust binary wolfsoftware · 23 pts · March 08, 2026 · 50% similar
- Debunking Zswap and Zram Myths javierhonduco · 186 pts · March 24, 2026 · 49% similar
- Notes on writing Rust-based Wasm vinhnx · 218 pts · March 08, 2026 · 46% similar
- Supertoast tables abelanger · 51 pts · March 06, 2026 · 45% similar
Discussion Highlights (3 comments)
theandrewbailey
> Since the old version of the game is known on both sides, we compress the new version using the old version as its dictionary. That's quite clever! > Since we compress once and decompress many times on player machines, we can afford slow compression times. Zstd lets you tune the compression level, and we found that level 19 yielded about 13% better compression than zip. Zstd is parallelizable across threads, which wasn't mentioned here. It helps speed it up at high compression levels, though not as much as I'd like.
nasretdinov
Using zstd for binary diffs is something I would never expect. I wonder how it compares to e.g. the library that Chrome uses: https://blog.chromium.org/2009/07/smaller-is-faster-and-safe... (this is from 2009 so maybe they made it better since)
lights0123
Nice! There's also zstd's flush ability that I've used for streaming robotics data. You can write data and flush it over the network for realtime updates, but the compression stream stays open so it can still reference past messages. This means messages get smaller over time so you don't need to share a dictionary ahead of time. I'm not aware of other compression algorithms that have flushing capability like this. > binary data to connected clients in tiny messages, each saying “field 5 on object X is now 123” I wonder how Meta's newer, format-understanding OpenZL would do. I imagine its schemas could be auto-generated from protobuf.