Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.
下载地址: https://github.com/google/brotli
Google开源Brotli压缩算法,与其他算法对比:
https://ctolib.com/mcmilk-7-Zip-zstd.html
https://www.cnblogs.com/langzou/p/5823285.html
项目中用了,同等压缩率下比zip(Deflate)快,但综合解压速度的话没有zip(Deflate)快。
项目中数据,brotli可以在4+的等级时压缩率高于zip的9等级。
brotli可以支持流式输入数据,且解压时无需附带压缩参数,这个比lzma方便。