3 ms·
The max window size for zlib is 32 KB, so I don't think the default sharding at 128 KB would change much. You can pass the -b parameter if you find out a bigger
by kbaker 10y ago
The max window size for zlib is 32 KB, so I don't think the default sharding at 128 KB would change much. You can pass the -b parameter if you find out a bigger shard works better on your data.
If you are looking for details of the design of pigz, there is a very well-documented overview in the source of pigz.c:
https://github.com/madler/pigz/blob/master/pigz.c#L187 https://github.com/madler/pigz/blob/master/pigz.c#L187
- chii 10y agohad a quick scroll thru that source code - i didnt know you could implement a try/catch in C via macros...mind blown.
- TimJYoung 10y agoThis book (C Interfaces and Implementations: Techniques for Creating Reusable Software) has a whole section on it: https://www.amazon.com/Interfaces-Implementations-Techniques-Creating-Reusable/dp/0201498413 https://www.amazon.com/Interfaces-Implementations-Techniques...