Menu

How to disable compression and what is iteration ?

Main Forum
2019-11-06
2019-11-09
  • Somchai Sappurit

    -z0: zlib compression
    
    -z1: 7zip compression (default)
    
    -z2: Zopfli compression
    
    -i##: number of iterations (default -i15) for 7zip and Zopfli
    

    How to disable compression and what is iteration ?

     

    Last edit: Somchai Sappurit 2019-11-06
  • Max Stepin

    Max Stepin - 2019-11-07

    Disable compression? Why?
    This tool is trying to implement the best compression possible, so disabling it would defeat the whole purpose.
    7zip and zopfli and special compression methods, they require ‘iteration’ parameter: more iterations means better compression but it will take more time.

     
    • Somchai Sappurit

      I see. All three types are lossless like a .zip file.

      What are the min/max of iterations value ?

       

      Last edit: Somchai Sappurit 2019-11-07
  • Max Stepin

    Max Stepin - 2019-11-08

    Right.

    I don't think there are limits, It the code it's something like this:

    for (i = 0; i < numiterations; i++)
    {
    }

    with some randomization of parametres inside the loop.

     

    Last edit: Max Stepin 2019-11-08
    • Somchai Sappurit

      OK, I test and found that the default -i15 is perfect balance time and compress bytes.

       

Log in to post a comment.