How can parallel gzip (e.g., pigz) be used by mrtrix programs?



I would like to shorten the processing time by using parallel gzip, such as pigz. Is there an easy way for a mrtrix program to recognize pigz?


Interesting suggestion, I hadn’t heard about this. It would be good to use something like this, but we can’t use that implementation in MRtrix3 – at least not without major changes to how we handle gzip files. The problem is that this is a standalone executable, a replacement for the gzip / gunzip programs. But MRtrix3 links against the libz library, and does its compression / decompression in RAM within process, not via an external executable. Are you aware of any drop-in replacements for the zlib library itself? If those exist, then it might be trivial to simply link against it…