zlib
A widely used open-source compression library based on the DEFLATE algorithm that balances compression ratio and speed, and is commonly used in formats such as gzip.
Timeline (last 90 days)
Many comments in the zlib source code can be traced back to the original implementation by Jean-loup Gailly and Mark Adler in the 1990s.
zlib is a library written to the C89 standard.
zlib has long maintained ABI compatibility.
zlib uses the zlib License, which permits free use and modification.
zlib is embedded or linked by a large number of projects such as the Linux kernel, Git, and the PNG specification.
zlib is a compression library that countless projects depend on.
A discussion on Hacker News pointed out that in a certain piece of code in zlib involving pointer operations, the intent described by its comments deviates from its actual behavior.
Compared with algorithms such as zlib and Snappy, LZ4's decompression speed is typically an order of magnitude ahead.
LZ4's compression ratio is generally between 2:1 and 3:1, while zlib is above 3:1.
A packfile consists of three parts: a header magic number and version number, an object data section (where each object is stored with zlib compression using delta encoding), and a trailing SHA-1 checksum.
1 more timeline events
All Facts (14)
Git在初始存储时为每个变更的文件创建完整的Blob对象(经过zlib压缩),称为松散对象(loose objects),真正的Delta压缩发生在Packfile打包阶段
90%Unverified对于源代码这类高度结构化的纯文本内容,zlib的压缩率通常可以达到60%-80%
75%Unverifiedzlib是基于DEFLATE算法的无损数据压缩库,结合了LZ77算法和哈夫曼编码两种技术
60%UnverifiedMany comments in the zlib source code can be traced back to the original implementation by Jean-loup Gailly and Mark Adler in the 1990s.
50%Unverifiedzlib is a library written to the C89 standard.
50%Unverifiedzlib has long maintained ABI compatibility.
50%Unverifiedzlib uses the zlib License, which permits free use and modification.
50%Unverifiedzlib is embedded or linked by a large number of projects such as the Linux kernel, Git, and the PNG specification.
50%Unverifiedzlib is a compression library that countless projects depend on.
50%UnverifiedA discussion on Hacker News pointed out that in a certain piece of code in zlib involving pointer operations, the intent described by its comments deviates from its actual behavior.
50%UnverifiedCompared with algorithms such as zlib and Snappy, LZ4's decompression speed is typically an order of magnitude ahead.
50%UnverifiedLZ4's compression ratio is generally between 2:1 and 3:1, while zlib is above 3:1.
50%UnverifiedA packfile consists of three parts: a header magic number and version number, an object data section (where each object is stored with zlib compression using delta encoding), and a trailing SHA-1 checksum.
50%UnverifiedCompared to traditional gzip/zlib, zstd typically delivers a higher compression ratio while maintaining extremely fast decompression speeds.
50%