(Transfer) Inno Setup entry (3) -- specify the compression method

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.