talira

Zstandard

Real-time data compression algorithm

open sourceBSD-3-Clause OR GPL-2.0-onlyself-hostablefree

Zstandard (zstd) is a fast lossless compression algorithm from Meta, aimed at real-time compression with zlib-level or better ratios and a very fast decoder. Compression levels range from negative --fast levels to strong high levels, while decompression speed stays roughly the same at every setting, and a training mode builds dictionaries that greatly improve compression of small, similar records. Its format is stable and published as IETF RFC 8878, and many independent implementations and bindings exist. This is the reference implementation: a C library and the zstd command line tool, which also reads and writes .gz, .xz and .lz4 files, dual-licensed BSD-3-Clause or GPL-2.0.

Problems it solves

  • compress data faster than gzip with a better compression ratio
  • compress logs, backups or network payloads in real time without a CPU bottleneck
  • compress many small JSON records efficiently with a trained dictionary
  • pick a compression level that trades speed for ratio without slowing decompression
  • a fast compression library to embed in a C or C++ application
  • a command line compressor that also handles .gz, .xz and .lz4 files

Features

  • fast lossless compression with zlib-level or better ratios
  • very fast decoder at every compression level
  • negative (--fast) to high compression levels
  • dictionary training for small data
  • stable format published as RFC 8878
  • C reference library
  • zstd command line tool that also reads and writes .gz, .xz and .lz4
  • ports and bindings for many languages from independent projects

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Zstandard does.

  1. 7-Zip A file archiver with a high compression ratio

Compare Zstandard with the top 3