News for hackers. Stuff that matters.
Re:Pigz: Parallel gzip for modern multi-processor, multi-cor... by viraptor on Friday May 12, 2023 @08:12AM (#35915044)
> compressing before tarring is probably better

Not if the files are similar. If you're compressing the files separately you'll start with a clean state rather than reusing previous fragments. Compressing a BMP after a TXT may not be beneficial, but compressing 3 tar'ed TXTs is definitely better than doing them separately.

Re:Pigz: Parallel gzip for modern multi-processor, multi-cor... by zweifuss on Friday May 12, 2023 @08:59AM (#35915571)
That is true and seems easily half the total size with small and similar files, but it also means you have to unpack the whole archive when you need the last file in a tarball.

AFAIK the gzip command still cannot compress directory information and therefore needs tar in front of it if you want to retain a folder structure.