Re:Why are tar.xz files 15x smaller when using Python's tar ...
by LeoPanthera on Sunday March 14, 2021 @06:10PM
(#26459864)
A good ugly hack is to reverse the filenames before sorting them, which has the side effect of grouping all the same file extensions together.
[ Parent
| on HN ]
Re:Why are tar.xz files 15x smaller when using Python's tar ...
by duskwuff on Sunday March 14, 2021 @06:22PM
(#26459986)
7za will do this for you when running with the -mqs option.
Re:Why are tar.xz files 15x smaller when using Python's tar ...
by pmarreck on Monday March 15, 2021 @10:55AM
(#26466741)
Why isn't this the default? Or does it mean you have to use another option when de-7zipping in order to reverse them back?
Re:Why are tar.xz files 15x smaller when using Python's tar ...
by duskwuff on Monday March 15, 2021 @10:38PM
(#26472250)
It's not always beneficial. If directories contain groups of files with closely related content but different extensions, keeping those groups together may yield better compression results than reordering the files by extension.