{"id":182059,"date":"2020-10-30T05:20:01","date_gmt":"2020-10-29T21:20:01","guid":{"rendered":"http:\/\/4563.org\/?p=182059"},"modified":"2020-10-30T05:20:01","modified_gmt":"2020-10-29T21:20:01","slug":"pigz-parallel-implementation-of-gzip","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=182059","title":{"rendered":"pigz &#8211; Parallel Implementation of GZip"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  pigz &#8211; Parallel Implementation of GZip               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Livid <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e00\u4e2a\u53ef\u4ee5\u5229\u7528\u591a\u6838\u5fc3 CPU \u6765\u52a0\u901f\u538b\u7f29\u7684 gzip \u5b9e\u73b0\uff1a<\/p>\n<p>https:\/\/zlib.net\/pigz\/<\/p>\n<p>Ubuntu \u4e0b\u53ef\u4ee5\u76f4\u63a5 <code>apt install pigz<\/code> \u5b89\u88c5\u3002<\/p>\n<p>\u548c\u539f\u59cb\u5355\u6838 gzip \u7684\u6027\u80fd\u5bf9\u6bd4\uff1a<\/p>\n<p>https:\/\/rachaellappan.github.io\/pigz\/<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3956045\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lcdtyph <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u76f4\u5728\u7528\uff0c\u8fd8\u6709\u5176\u4ed6\u683c\u5f0f\u7684\u51e0\u4e2a<br \/>pixz \u5e76\u884c\u7248\u7684 xz<br \/>pbzip2 \u5e76\u884c\u7248\u7684 bzip2<\/p>\n<p>\u548c tar \u8054\u52a8\u7684\u8bdd\u53ef\u4ee5\u8fd9\u6837<br \/>tar -Ipigz -xf xxx.tar.gz                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3956046\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yyfearth <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lcdtyph xz \u4e0d\u652f\u6301 multi-core \u5417\uff1f<br \/>\u6211\u8bb0\u5f97 xz \u672c\u6765\u5c31\u6709&#8211;thread \u53c2\u6570\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3956047\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AlohaV2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e4b\u524d\u8bd5\u8fc7\u89e3\u538b\u901f\u5ea6\u548c\u538b\u7f29\u6bd4\uff0czstd \u5728\u6027\u4ef7\u6bd4\u4e0a\u662f\u6d4b\u8fc7\u6700\u9ad8\u7684\uff0c\u4e5f\u6709 pzstd \u5e93\u652f\u6301\u5e76\u53d1\u3002<br \/>https:\/\/github.com\/facebook\/zstd\/tree\/dev\/contrib\/pzstd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3956048\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lcdtyph <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yyfearth <br \/>\u6ca1\uff0c\u867d\u7136\u63d0\u4f9b\u4e86&#8211;threads \u9009\u9879\uff0c\u4f46\u662f manpages \u91cc\u6709\u4e00\u53e5&#8221;Multithreaded compression and decompression are not implemented yet,<br \/>so this option has no effect for now.&#8221;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3956049\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AlohaV2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lcdtyph @yyfearth <br \/>7-zip \u7684 LZMA SDK \u652f\u6301 xz \u591a\u7ebf\u7a0b\u89e3\u538b\uff0c\u4e0d\u8fc7\u597d\u50cf\u53ea\u6709 Windows \u5e73\u53f0\u53ef\u4ee5\u3002\u6211\u4e4b\u524d\u8fd8\u6539\u8fc7\uff0c\u52a0\u4e86\u4e0b Linux \u7684\u652f\u6301<br \/>https:\/\/unique-ptr.com\/archives\/92.html<br \/>\u4e0d\u8fc7\u540e\u6765\u4e00\u987f\u641c\u7d22\u4e4b\u540e\uff0c\u8fd8\u662f\u51b3\u5b9a\u8f6c\u6295 zstd \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3956050\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ericFork <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e24\u5e74\u524d\u6d4b\u4e86\u4e00\u5927\u5708\uff0c\u8003\u8651\u5230\u5f88\u591a\u573a\u666f\u4e0b\u89e3\u538b\u901f\u5ea6\u66f4\u91cd\u8981\uff0czstd \u65e0\u51fa\u5176\u53f3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>pigz &#8211; Para&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/182059"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182059"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/182059\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182059"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}