This article Reprinted from: http://blog.csdn.net/augusdi/article/details/8564796
The compression in the setup section specifies the compression method. A higher compression ratio requires more time or memory space. The available values are as follows:
Zip
Zip/1 to zip/9
Bzip
Bzip/1 to bzip/9
Lzma
Lzma/fast
Lzma/normal
Lzma/MAX
Lzma/ultra
Lzma/ultra64
Lzma2
Lzma2/fast
Lzma2/normal
Lzma2/MAX
Lzma2/ultra
Lzma2/ultra64
None
Lzma2/Max is the default compression method used by the compiler. In addition, lzma/ultra, lzma/ultra64, lzma2/ultra, and lzma2/ultra64 need to be reviewed before use. The zip compression algorithm is faster, and only requires a low memory space (no more than 1 MB) during compression and decompression, but the compression is not as good as other methods, the same as the lzma algorithm, zip has a special attribute: it directly skips unzipped files (such as files already compressed, the default compression level is 7 (available 1-9)
Bzip is the method used by the Bzip2 compressed file. It is usually better than the zip method, but the compression speed is relatively slow. At the same time, it needs to occupy a larger memory space. Generally, the compression time is 8 Mb, it is 4 MB for decompression, and the default compression level is 9 (available is 1-9)
Lzma adopts the 7-zip lzma compression method. Compared with the preceding zip and bzip compression algorithms, lzma has a better effect, but it also occupies a large amount of memory and is slow.
Lzma2 is a 7-zip lzma2 compression method. This algorithm is an improved version of lzma. It can provide a better ratio to uncompressed files and achieve multi-part synchronous compression for large files. Similarly, this algorithm consumes a large amount of memory.
None obviously does not use any compression method.
You can select an appropriate Compression Algorithm Based on your file features. In my opinion, the default compression algorithm can be used for packaging in general.