+4
日增长
+101
周增长
+245
月增长
28,254
stars
2,690
forks
410
watchers
3,283
prs
1,614
issues
68
releases
README
__Zstandard__, or zstd as short version, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios. It's backed by a very fast entropy stage, provided by Huff0 and FSE library. Zstandard's format is stable and documented in RFC8878. Multiple independent implementations are already available. This repository represents the reference implementation, provided as an open-source dual BSD OR GPLv2 licensed C library, and a command line utility producing and decoding .zst, .gz, .xz and .lz4 files. Should your project require another programming language, a list of known ports and bindings is provided on Zstandard homepage. Development branch status: [![Build Status][travisDevBadge]][travisLink] [![Build status][CircleDevBadge]][CircleLink] [![Build status][CirrusDevBadge]][CirrusLink] [![Fuzzing Status][OSSFuzzBadge]][OSSFuzzLink] [travisDevBadge]: https://api.travis-ci.com/facebook/zstd.svg?branch=dev "Continuous Integration test suite" [travisLink]: https://travis-ci.com/facebook/zstd [CircleDevBadge]: https://circleci.com/gh/facebook/zstd/tree/dev.svg?style=shield "Short test suite" [CircleLink]: https://circleci.com/gh/facebook/zstd [CirrusDevBadge]: https://api.cirrus-ci.com/github/facebook/zstd.svg?branch=dev [CirrusLink]: https://cirrus-ci.com/github/facebook/zstd [OSSFuzzBadge]: https://oss-fuzz-build-logs.storage.googleapis.com/badges/zstd.svg [OSSFuzzLink]: https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:zstd Benchmarks For reference, several fast compression algorithms were tested and compared on a desktop featuring a Core i7-9700K CPU @ 4.9GHz and running Ubuntu 24.04 (Linux 6.8.0-53-generic), using [lzbench], an open-source in-memory benchmark by @inikep compiled with [gcc] 14.2.0, on the [Silesia compression corpus]. [lzbench]: https://github.com/inikep/lzbench [Silesia compression corpus]: https://sun.aei.polsl.pl//~sdeor/index.php?page=silesia [gcc]: https://gcc.gnu.org/ | Compressor name | Ratio | Compression| Decompress.| | --------------- | ------| -----------| ---------- | | zstd 1.5.7 -1 | 2.896 | 510 MB/s | 1550 MB/s | | brotli 1.1.0 -1 | 2.883 | 290 MB/s | 425 MB/s | | [zlib] 1.3.1 -1 | 2.743 | 105 MB/s | 390 MB/s | | zstd 1.5.7 --fast=1 | 2.439 | 545 MB/s | 1850 MB/s | | quicklz 1.5.0 -1 | 2.238 | 520 MB/s | 750 MB/s | | zstd 1.5.7 --fast=4 | 2.146 | 665 MB/s | 2050 MB/s | | lzo1x 2.10 -1 | 2.106 | 650 MB/s | 780 MB/s | | [lz4] 1.10.0 | 2.101 | 675 MB/s | 3850 MB/s | | snappy 1.2.1 | 2.089 | 520 MB/s | 1500 MB/s | | lzf 3.6 -1 | 2.077 | 410 MB/s | 820 MB/s | [zlib]: https://www.zlib.net/ [lz4]: https://lz4.github.io/lz4/ The negative compression levels, specified with --fast=, offer faster compression and decompression speed at the cost of compression ratio. Zstd can also offer stronger compression r
Top issues
#395Is zstd splitabble in hadoop/spark/etc? 58 comments · 2016-09-28#3271Make CMake official? (Makefile build does not provide CMake config file)24 comments · 2022-09-21#3882zstd fails to process some filenames on Windows [we need a hero]19 comments · 2024-01-24#2173--patch-from extensions and speed optimizations19 comments · 2020-05-25#2460zstd_btultra corner case18 comments · 2021-01-07#3508issues found while fuzzing to compare behaviour of Zig decoder to this repo17 comments · 2023-02-14#4446small regression in compressed size of tiny chunk from commit 6004c1114 comments · 2025-07-23#3627Zstd should not ignore symbolic links when writing to stdout13 comments · 2023-04-21
Latest release
Zstandard v1.5.7 v1.5.7 2025-02-19Zstandard v1.5.7 is a significant release, featuring over 500 commits accumulated over the past year. This update brings enhancements across various domains, including performance, stability, and functionality, and is particularly recommended for 32-bit users due to a bug fix detailed below. _edit_: man pages were not properly updated in this package, and are still pointing to v1.5.6. If you want the v1.5.7 version, they are updated in dev branch, and can be cherry-picked using commit 6af3842118ea5325480b403213b2a9fbed3d3d74. Alternatively, they can also be built locally using make manual a