Quantum-mechanical calculation codes create output in the form of plain text files. Sometimes the files are very large - a several / a few dozen MB of plain text. Some time ago I decided to clean out some directories containing calculation outputs in large text files (to save some disk space) and compress them. By the way I checked which one of the three common compression formats – zip, rar, or 7z – has better compression level for text files.
|Size without compression (MB)||Zip archive (MB)||7z archive (MB)||Rar archive (MB)|
|Directory 1 (only text files)||193,7||38,8||2,4||3,5|
|Directory 2 (only text files)||633,7||128,6||5,9||8,5|
|Directory 3 (text and binary files)||699,6||153,3||99,7||144,4|
The results are very interesting, because for plain text files (of high redundancy) the 7z compression allows you to create an archive of size up to 100 times smaller than uncompressed files (and up to several times smaller than a zip/rar archive).