技术头条 - 一个快速在微博传播文章的方式     搜索本站
您现在的位置首页 --> 算法 --> 开源压缩算法Zopfli介绍

开源压缩算法Zopfli介绍

浏览:3346次  出处信息

   谷歌近日推出了全新开源压缩算法Zopfli, 官方主页在 这里,相关文档在 这里

   Zopfli is a new deflate compatible compressor that was inspired by compression improvements

   developed originally for the lossless mode of WebP image compression. Being compatible with

   deflate makes Zopfli compatible with zlib and gzip. Most internet browsers support deflate

   decompression, and it has a wide range of other applications. This means that Zopflicompatible

   decompression is readily widely available.

   二个特点:

   1. The output produced by Zopfli is 3.7-8.3 % smaller than that of gzip 9.

   2. Zopfli is 81 times slower than the fastest measured algorithm gzip 9.

   最大的特点是压缩好的数据和zip兼容,也就是说目前标准的zip uncompress算法都能解开,看起来比较适合web服务器的数据存储,降低成本,虽然只有3-8%点的提高,但是数据规模大了,还是很可观的。

   下载源码,编译得到zopfli:

$ ./zopfli  -h
Usage: zopfli [OPTION]... FILE
  -h    gives this help
  -c    write the result on standard output, instead of disk filename + '.gz'
  -v    verbose mode
  --gzip  output to gzip format (default)
  --deflate  output to deflate format instead of gzip
  --zlib  output to zlib format instead of gzip
  --i5  less compression, but faster
  --i10  less compression, but faster
  --i15  default compression, 15 iterations
  --i25  more compression, but slower
  --i50  more compression, but slower
  --i100  more compression, but slower
  --i250  more compression, but slower
  --i500  more compression, but slower
  --i1000  more compression, but slower

   祝玩得开心。

建议继续学习:

  1. windows下压缩包在linux解压乱码的解决办法    (阅读:4013)
  2. 启用memcached压缩注意事项    (阅读:3940)
  3. php的echo为什么这么慢    (阅读:3878)
  4. 使用系统命令实现文件的压缩与加密    (阅读:3854)
  5. MySQL从压缩文件恢复数据    (阅读:3564)
  6. 前端性能优化之Html压缩    (阅读:3547)
  7. mod_gzip:Apache的HTTP压缩优化    (阅读:3445)
  8. 项目中对模板和js,css文件进行压缩的处理类    (阅读:3402)
  9. 为什么不压缩 HTML    (阅读:3357)
  10. 在服务端合并和压缩JavaScript和CSS文件    (阅读:3140)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
© 2009 - 2024 by blogread.cn 微博:@IT技术博客大学习

京ICP备15002552号-1