p7zip-project / p7zip

A new p7zip fork with additional codecs and improvements (forked from https://sourceforge.net/projects/sevenzip/ AND https://sourceforge.net/projects/p7zip/).
765 stars 109 forks source link

Usage question #76

Closed joshcangit closed 3 years ago

joshcangit commented 3 years ago

I'm not sure how to compress to 7z with FastLZMA2. It seems to use LZMA2.

Also, for compression level of FastLZMA2, I wonder if Fast is best or I should use Normal or maybe Maximum or even Ultra? I'm looking for fastest decompression.

jinfeihan57 commented 3 years ago

./7z a archive.7z filename -m0=flzma2 -mx9 These parameters will use fastlzma2 level 9 compressed files. Fastlzma2 is fully compatible with lzma2. So they share the decompression algorithm. If you want to decompress faster, try zstd & lz4 compression algorithm.

joshcangit commented 3 years ago

So, Maximum compression level is ideal right?

Much thanks.

Also, yes I've tried zstd and lz4 and were indeed very fast but they didn't work for .cb7 files. I'm sure comic book readers only use default codecs. Forgot to tell you this was what I was looking for.

jinfeihan57 commented 3 years ago

Use Maximum compression level to obtain the maximum compression ratio and make the compression speed slowest.