M2Team / NanaZip

The 7-Zip derivative intended for the modern Windows experience
https://sourceforge.net/projects/nanazip/
Other
8.74k stars 222 forks source link

Very slow ZIP compression #348

Open clankgeek opened 11 months ago

clankgeek commented 11 months ago

Nanazip is very slow to compress with ZIP instead of WinRar and same the very slow Windows 11 native.

Sample is 144 files, total space of 24GB, test with Ryzen 4500 (6 cores 12 threads) and Windows 11 Pro 23H2.

Nanazip 3 -> 20m:51s -> 15905KB Windows 11 -> 17m:03s -> 16183KB Winrar -> 6m43s -> 16159KB (compression level Normal)

What is the compression level of zip in NanaZip ? it's not adjustable and the gain is ridiculous compared to the time lost.

clankgeek commented 11 months ago

I think it's not a bug but rather a compression level that needs to be adjusted to improve performance on ZIP compression.

On Linux, referring to the ZIP man page, I can use different compression levels ranging from 1 (very fast) to 9 (very slow but best compression).

zip --help
  -1   compress faster              -9   compress better

Perhaps in the ZIP library, you can override the compression level ? or add the chose of level directly in gui parameter :)