What: How to properly compress files
Why: Because properly compressing a file (or mod) will make uploads and downloads significantly faster, while being less demanding on servers. The cons? It will take longer decompressing the file/mod, but at least for me, what takes longest by far is to download mods, so in overall there's only benefits.
To begin with, here's some data to show how much of a difference file compression can do:
Name of Mod
Size of mod when installed (versions as of the date of this post (February 2014))
Size of uploaded mod
Size of mod when 'reziped' (my compression settings are shown later on)
Reziped ratio: multiply it by 100 and you have the percentage size of the 'reziped' in relation to the 'uploaded'
Spoiler Alert, click show to read:
Notes on the above list:
Spoiler Alert, click show to read:
Compressing the Files
Software used: 7Zip
How to:
-Right click a folder/file, on the 7Zip menu select "Add to Archive "
-Now you can customize the compression of the folder/file
I use:
-Archive Format: "7z", because it allows some options that are not available for other formats (I believe)
-Compression level: "Ultra", we wanna compress it damn it! :p
-Compression method: "LZMA2", you can try out the other ones, but this one seems to be the one with better compression levels and a good performance
-Dictionary size: "1024Mb" - this also determines how well compressed it will be. It influences the RAM needed though (and thus time for compression). The benefit by increment in size decreases as the size increases.
-Word size: "273" - this doesn't affect the RAM at all, so I guess a higher value will just make the compression take longer (but better).
-Solid Block Size: "Solid" - I do not advise the use of "Non-Solid". You can split the result in chunks here, which is good if you want to upload smaller files (but more of them though).
-Number of CPU threads: "3" - The more the faster (assuming you have enough threads. To know the number of threads open the task manager(varies with the version you have), or search for your processor). However, it also influences the RAM needed, so a balance needs to be found.
"Memory usage for Compressing:" With my settings, it's almost 11Gb, but I have 16Gb of RAM, which is awesome :p (just because I could, and expect to use it later on, but haven't yet (only for compressing)) Just play around 'till you find settings that suit your specs.
"Memory usage for Decompressing:" mine says '1026Mb', but I don't think it is a problem for anyone, since any system with 2/3 Gb of RAM should only suffer a small slowdown.
Please note that the above is mainly based on experience, so mistakes may have been made.
Thats All Folks!!!
DD