Reputation: 1489
Recently I've informed about pigz
compression tool. After downloading and installing it, the benchmark results have been pretty good.
I have implemented a custom streambuf
for writing gzipped files (also with ability of sink
operations).
My question is: is it possible to move from zlib
to pigz
, i.e somehow replace zlib functions (gzwrite
, gzseek
, gzopen
...) with equivalent multi-threaded versions from pigz
in mentioned streambuf implementation?
Actually I did not find any documentation about how to use pigz
as a library like zlib
.
Upvotes: 1
Views: 916
Reputation: 112642
pigz is not a library. You would need to adapt the source code in pigz for use in other applications. That would take some work.
Upvotes: 2