Compression Ratio Values for Deflate Method
Previous  Top  Next

Compression Ratio Values for Deflate Method

Used by

AddData() method and XbZ_Compress2() function. Might also be saved in the Compression iVar by the New() and Open() methods.  

Values

Define
Value
Description
XBZ_DEFAULT_COMPRESSION
-1
Default compression (similar to 6).
XBZ_NO_COMPRESSION
0
No compression, cannot be specified!
XBZ_BEST_SPEED
1
Minimum compression, fastest speed.
XBZ_BEST_COMPRESSION
9
Maximum compression, slowest speed.
 
 
Also possible are all integer values between 1 and 9 (for which no define constants exist), which determine the relation between Speed and Compression Ratio and give a finer granulation than the above listed Define values. But in virtually all cases, the Default Compression is the best compromise between compression ratio and speed. Using higher compression ratios will result in only very slightly smaller files, and using a better speed (lower compression ratio) will give only very small improvements in the speed!