brotli 例子

Brotli是一种通用的无损压缩算法,提供与deflate相当的压缩比,但速度更快。它结合了LZ77、Huffman编码和2nd order上下文建模。Google已将其开源,与zstd和lzma等算法相比,Brotli在特定条件下压缩速度更快,尽管解压速度可能稍慢。在项目实践中,Brotli在4+级别时的压缩效率超过zip的9级别,并且支持流式输入数据,解压时无需额外压缩参数,使用更便捷。
摘要由CSDN通过智能技术生成

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方便。

 


                
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值