How does one achieve parallel gzip compression with Python?
问题 Big file compression with python gives a very nice example on how to use e.g. bz2 to compress a very large set of files (or a big file) purely in Python. pigz says you can do better by exploiting parallel compression. To my knowledge (and Google search) insofar I cannot find a Python equivalent to do so in pure Python code. Is there a parallel Python implementation for pigz or equivalent? 回答1: I don't know of a pigz interface for Python off-hand, but it might not be that hard to write if you