{"repo":"klauspost/compress","free":true,"listed":false,"github":"https://github.com/klauspost/compress","clone":"git clone https://github.com/klauspost/compress.git","description":"Optimized Go Compression Packages","language":"Go","stars":5604,"topics":["zstd","gzip","compression","decompression","snappy","zip","golang","zstandard","go","deflate"],"license":null,"category":"dev-tools","readme_excerpt":"compress This package provides various compression algorithms. zstandard compression and decompression in pure Go. S2 is a high performance replacement for Snappy. Optimized deflate packages which can be used as a dropin replacement for gzip, zip and zlib. snappy is a drop-in replacement for github.com/golang/snappy offering better compression and concurrent streams. lzw is a drop-in replacement for compress/lzw with 1.4-4x faster decompression and 1.1-2.7x faster compression, depending on the data. huff0 and FSE implementations for raw entropy encoding. gzhttp Provides client and server wrappers for handling gzipped/zstd HTTP requests efficiently. pgzip is a separate package that provides a very fast parallel gzip implementation. package usage Use go get github.com/klauspost/compress@latest to add it to your project. This package will support the current Go version and 2 versions back. Use the nounsafe tag to disable all use of the \"unsafe\" package. Use the noasm tag to disable all assembly across packages. Use the links above for more information on each. changelog Jul 1st, 2026 1.19.0 zstd: Add true concurrent stream encodingin https://github.com/klauspost/compress/pull/1136 zstd: arm64 decoder asm by @lizthegrey in https://github.com/klauspost/compress/pull/1160 flate: Add inflate checkpoints in https://github.com/klauspost/compress/pull/1154 zstd: avoid unused BuildDict encoder allocation by @snissn in https://github.com/klauspost/compress/pull/1147 snappy/s2: Limit leng","default_branch":null,"files":null,"tree":[],"storefront":"/r/klauspost","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/klauspost/compress/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}