Menu

LZMA2

shadows73
2009-05-02
2012-12-08
  • shadows73

    shadows73 - 2009-05-02

    Hi,

    can someone tell me, in wich cases LZMA2 is better than LZMA?
    I´ve compressed some files with both to test the filesize. Some files with LZMA2 are a bit bigger than with LZMA. (most times ISO files)

    Thx

     
    • Igor Pavlov

      Igor Pavlov - 2009-05-02

      Use 2 threads in LZMA2 for better compression ratio.

       
    • norbert3

      norbert3 - 2009-05-04

      Compression ratio depends on amount of CPU threads??? Strange...

       
      • Bulat Ziganshin

        Bulat Ziganshin - 2009-05-04

        The compression algorithm isn't exactly the same

        there is no black magic: single-threaded algorithm can't be executed without modifications by many threads. and these changes sometimes means less compression, trading speed vs size

         
    • norbert3

      norbert3 - 2009-05-05

      If increasing the amount of threads the users expects faster but not different results. This is what I mean.

       
      • Bulat Ziganshin

        Bulat Ziganshin - 2009-05-05

        unfortunately, that's impossible with current algos. for people compressing gigabytes of data loss of comprssion ratio will be not so huge and not so important

         
    • norbert3

      norbert3 - 2009-05-05

      Igor P. says:
      "Use 2 threads in LZMA2 for better compression ratio."

      Better than 1 or better than 3, 4... threads?

       
      • Igor Pavlov

        Igor Pavlov - 2009-05-05

        For LZMA2 in normal/max/ultra level:
        2 threads provides almost the same compression ratio as with 1 threads.
        If you set 3 threads, LZMA2 still use 2 threads.
        4 and more threads give worse compression ratio.

        For LZMA2 in fast/fastest level:
        1 thread provides best сompression ratio.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.