替代gzip的快速压缩方法

Posted luliangel

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了替代gzip的快速压缩方法相关的知识,希望对你有一定的参考价值。

快速压缩工具pigz

近期为了优化构建产物的压缩速率,从tar -zcvf替换到了pigz。
pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. pigzwas written by Mark Adler, and uses the zlib and pthread libraries. To compile and use pigz, please read the README file in the source code distribution. You can read the pigz manual page here
可见pigz实现了并行化的gzip,获得几十倍的速率提升。
同时兼容gzip解压,对用户完全透明。已在生产环境中直接上,没有任何问题。
 

以上是关于替代gzip的快速压缩方法的主要内容,如果未能解决你的问题,请参考以下文章

Python:读取/解压缩 12 位小端压缩数据的快速方法

快速替代 jar 命令来更新 .jar

RDIFramework.NET ━ .NET快速信息化系统开发框架 V3.2 新增解压缩工具类ZipHelper

Arch Linux现在开始使用 zstd 替代 xz 进行软件包压缩

JS项目快速压缩(windows平台)

开源 | Intel发布神经网络压缩库Distiller:快速利用前沿算法压缩PyTorch模型