Menu

#2498 Zip archive - compression level 1 and 3 same file size

open
nobody
None
5
2024-08-05
2024-08-05
Jan B
No

When I compress files with compression level 1, it has everytime the same filesize and duration as when I compress it with compression level 3. It looks like there is no difference between those compression levels.

Discussion

  • Jan B

    Jan B - 2024-08-05

    I double checked it and I have to correct it the level 1 compression have a lower file size as 3, you can see the compression results with the size in the attached screenshoot.

     
    • Igor Pavlov

      Igor Pavlov - 2024-08-05

      Check it again.
      And write the question again based on new results.
      Also write about archive sizes in text format instead of screenshots.

       

      Last edit: Igor Pavlov 2024-08-05
  • Jan B

    Jan B - 2024-08-05

    I checked it now 3 times in a row and used the windows context menu to compress the files.
    For the methode Deflate and Deflate64 the file sizes are the same, the other methods has a different size and the size is smaller for the higher compression level. I attach the test results in a text file.

     
  • Jan B

    Jan B - 2024-08-05

    I did another Test with another file and the test results looks the same. I attach the result, this time only one test round.

     
  • Igor Pavlov

    Igor Pavlov - 2024-08-05

    Deflate method always uses small dictionary.
    So we use fast and fastest for same settings.
    We can change dictionary size for another methods.

     
  • Jan B

    Jan B - 2024-08-05

    ok, for my purpose I need it faster. So I tested a bit more and found a solution for me to get this done. I will lower the word size from 32 to 8 and this will speed up Deflate from 14 sec to 10 sec to compress the file with 760858 KB. The file size after compress will be a bit bigger 5 MB, that's really nothing when I see the speed difference.

     

Log in to post a comment.