Direct answer: Zstandard (zstd), developed at Meta and trending on GitHub, compresses faster than older algorithms while matching their ratios - and its dictionary mode compresses small files brilliantly by reusing learned patterns. The design explains most of modern compression's progress.

The repo is on GitHub Trending today as version releases land. Compression sits under nearly everything - databases, package managers, network protocols - so its improvements compound silently across computing.

Two ideas deliver the speed.

Idea one: spend CPU where it pays

Older algorithms searched exhaustively for the best match at every position. Zstandard's levels let you choose how hard to search: low levels run extremely fast with decent ratios, high levels hunt harder. Compression stops being one setting and becomes a dial you tune per workload - instant logs versus archival storage.

RawdataMatch finding atchosen levelEntropy codingstageCompressedblockLevel dialtunes speed

Idea two: train a dictionary

ScenarioWithout dictionaryWith trained dictionary
Millions of small recordsEach too tiny to compress aloneShared patterns compressed across files
JSON API payloadsRepetitive keys waste spaceStructure learned once, reused everywhere
Log linesSimilar formats re-encoded endlesslyFormat skeleton lives in the dictionary
Cold small-file storageCompression skipped entirelyRatios rival large-file compression

The dictionary is the sleeper feature: small data compresses poorly alone because patterns never accumulate. Training on samples extracts the shared skeleton, and every future payload references it - effectively pre-loading context.

Why it won adoption

  • Ratios comparable to the best older codecs at multiples of their speed.
  • Decompression fast enough for hot paths, not just archival.
  • Backward-compatible framing and streaming support built in.
  • The license and the ecosystem positioning made switching easy.

That second bullet is what made databases and operating systems adopt it: decompression speed decides where compression may live.

Its streaming interface also shaped adoption: compression fits pipelines - network protocols, log shippers, database writes - because data compresses as it flows rather than in batch.

missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

The general lesson

Compression progress came not from one genius trick but from making the trade-offs explicit and tunable - speed versus ratio, and context versus size. Whenever you face a resource trade-off, ask whether it can become a dial plus a shared-context mechanism. The trending repo this week industrialized exactly that.

Key takeaways

  • Zstandard turns compression strength into a tunable dial across workloads.
  • Dictionary mode compresses small files by pre-loading learned shared patterns.
  • Fast decompression moved compression into hot paths like databases and protocols.
  • Explicit trade-offs beat one-size-fits-all algorithms in systems design.

Quick answers

What makes zstd faster than older compression?
Tunable match-search levels plus modern entropy coding spend effort only where the chosen level says to.

What is dictionary training?
Learning common patterns from sample data so small payloads can reference shared context instead of compressing blind.

Where is zstd already running?
Inside databases, package managers, file systems, network protocols and operating systems - often invisibly.

When should I still use other formats?
Legacy compatibility or extreme archival ratios may justify older tools; for most hot-path work, zstd wins.

One thing to do tonight

Time one compression run on a log file you own at low and high settings. Watching the dial move changes how you think about every storage choice.