04/12/19
I did a test of the size of the BCH mainnet blockchain, along with different compression formats. I tried 7zip on the highest compression setting, and that seemed to do the best. For comparison, I did a tar.gz file, as that is a common compression format for Linux:
- 165 GB - Blockchain size uncompressed
- 130 GB - tar.gz compressions
- 113 GB - 7zip ultra compression
Here is how I ran the 7zip compression. Note: it took about a day to compress the blockchain. 7zip has the best compression, but it comes at the cost of extremely expensive computing. Uncompressing the blockchain only take a few second. But compression takes a very long time.
Adds all files from directory "dir1" to archive archive.7z using "ultra settings"
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1
I think you should do one more, bzip2.
It strikes a much more reasonable balance between compression time and compression ratio.