跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • pigz – Parallel Implementation of GZip
未分類
30 10 月 2020

pigz – Parallel Implementation of GZip

pigz – Parallel Implementation of GZip

資深大佬 : Livid 1

一个可以利用多核心 CPU 来加速压缩的 gzip 实现:

https://zlib.net/pigz/

Ubuntu 下可以直接 apt install pigz 安装。

和原始单核 gzip 的性能对比:

https://rachaellappan.github.io/pigz/

大佬有話說 (6)

  • 資深大佬 : lcdtyph

    一直在用,还有其他格式的几个
    pixz 并行版的 xz
    pbzip2 并行版的 bzip2

    和 tar 联动的话可以这样
    tar -Ipigz -xf xxx.tar.gz

  • 資深大佬 : yyfearth

    @lcdtyph xz 不支持 multi-core 吗?
    我记得 xz 本来就有–thread 参数啊

  • 資深大佬 : AlohaV2

    之前试过解压速度和压缩比,zstd 在性价比上是测过最高的,也有 pzstd 库支持并发。
    https://github.com/facebook/zstd/tree/dev/contrib/pzstd

  • 資深大佬 : lcdtyph

    @yyfearth
    没,虽然提供了–threads 选项,但是 manpages 里有一句”Multithreaded compression and decompression are not implemented yet,
    so this option has no effect for now.”

  • 資深大佬 : AlohaV2

    @lcdtyph @yyfearth
    7-zip 的 LZMA SDK 支持 xz 多线程解压,不过好像只有 Windows 平台可以。我之前还改过,加了下 Linux 的支持
    https://unique-ptr.com/archives/92.html
    不过后来一顿搜索之后,还是决定转投 zstd 了

  • 資深大佬 : ericFork

    两年前测了一大圈,考虑到很多场景下解压速度更重要,zstd 无出其右

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具