How to use multiple threads for zlib compression (same input source)
问题 My goal is to compress the data of the same source in parallel threads. I have defined jobs which are in a list, these jobs have the read information(500kb-1MB in each job). My compressor threads will compress each block's data using ZLIB and store it in the outbuf of the corresponding jobs. Now, I want to ,merge all this and create one output file which is of standard ZLIB format. From the ZLIB RFC and after browsing the source of pigzee, I understand that A ZLIB header is like below +---+--