(04-20-2014, 12:48 AM)avih Wrote: Interestingly, while bzip2 should usually compress better than gzip, with the few ISOs which I tested, gzip compressed about the same as bzip2.
Gzip compression takes about half an hour per .iso file, which is incredibly slow. For some reason, 7-Zip doesn't allow for multiple CPU threads to be used when compressing into gzip but it does allow it when compressing into bzip2, which makes compression take A LOT less.
So at first I was making this post to formally request bzip2 support but
avih has found me a program that supports multi-threaded gzip compression, so I'm here to tell you guys about that instead. The program is CLI-only but if you want to try it, it's called Pigz and here's the link:
http://blog.kowalczyk.info/software/pigz-for-windows.html
All that I can say about it is that it scales VERY well. Here's some comparison times:
Final Fantasy X (NTSC-U), .iso -> .gz compression on 7-Zip =
31:16 minutes
Final Fantasy X (NTSC-U), .iso -> .gz compression on Pigz =
01:16 minutes
Original file size: 4,508,221,440 bytes (
4.19 GB)
FFX.iso.gz (
7-Zip): 4,064,510,952 bytes (
3.78 GB)
FFX.iso.gz (
Pigz): 4,093,622,940 bytes (
3.81 GB)
The difference in size between the 7-Zip file and the Pigz file is only
29.11 MB! So while 7-Zip might provide a more compressed file, Pigz does it in a fraction of the time.
On Pigz, the only option I used was -9, which is the highest compression strength it offers through zlib. (numbers go from 0 to 9)
I don't know what compression number Pigz uses by default when you don't specify one, but it's not 9. My guess is that it's somewhere in the middle, maybe 5. FWIW, when I compressed FFX.iso with Pigz without any options, the difference in file size between it and the -9 option was about 0.30 MB, so very negligible.
If you want to keep the source file after compression is done, be sure to add the -k option. For example:
Code:
pigz -k -9 "E:\PS2 Games\Final Fantasy X.iso"
That command would compress Final Fantasy X.iso using the highest level of compression and also it won't delete the original file when it's done.
Enjoy!!