Results 1 to 17 of 17

Thread: AdvanceCOMP with new 7-zip

  1. #1
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts

    AdvanceCOMP with new 7-zip

    I tried to update the 7-zip library to 9.20 in AdvanceCOMP-1.15.
    but the advdef result goes worse when comparing with old 7-zip library.

    I wonder if I made wrong changes?

    Sources and compiled binary attached.

    EDIT: Changing compress_rfc1950_7z to use NCompress::NZlib::CEncoder directly solves the issue!
    but I have a few samples that old advdef compresses better than advdef-7z920 (though others are better with advdef-7z920)
    Attached Files Attached Files
    Last edited by roytam1; 20th March 2013 at 07:00.

  2. The Following User Says Thank You to roytam1 For This Useful Post:

    lorents17 (4th October 2015)

  3. #2
    Programmer Bulat Ziganshin's Avatar
    Join Date
    Mar 2007
    Location
    Uzbekistan
    Posts
    4,497
    Thanks
    733
    Thanked 659 Times in 354 Posts
    what is the "old"? how much is difference?

  4. #3
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    Quote Originally Posted by Bulat Ziganshin View Post
    what is the "old"? how much is difference?
    the old one should be forked from 7-zip < 3.13 as 7-zip 3.13 has NCompress namespace, which advanceCOMP 7-zip library doesn't have.

    I have some PNG sample that compress worse.

  5. #4
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Quote Originally Posted by roytam1 View Post
    the old one should be forked from 7-zip < 3.13 as 7-zip 3.13 has NCompress namespace, which advanceCOMP 7-zip library doesn't have.

    I have some PNG sample that compress worse.
    Version 1.16 was released recently, it is available at http://advancemame.sourceforge.net/comp-download.html
    By the way, would be possible to use Zopfli, instead of 7-Zip ZIP implementation? It should gather better results...

  6. #5
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    Changing compress_rfc1950_7z to use NCompress::NZlib::CEncoder directly solves the issue!
    but I have a few samples that old advdef compresses better than advdef-7z920 (though others are better with advdef-7z920)

    Quote Originally Posted by nikkho View Post
    Version 1.16 was released recently, it is available at http://advancemame.sourceforge.net/comp-download.html
    By the way, would be possible to use Zopfli, instead of 7-Zip ZIP implementation? It should gather better results...
    1.16 violates my work flow while it doesn't improve compression ratio (I'd like to have .tmp which has same basename as original file like 1.15)

    It seems no that hard plugging Zopfli to advcomp.
    EDIT: I filed a bug in zopfli that zopfli is unfriendly with pre-allocated memory: http://code.google.com/p/zopfli/issues/detail?id=13

    EDIT 2: workaround by memcpy() it. src/bin attached.
    Attached Files Attached Files
    Last edited by roytam1; 18th March 2013 at 11:56.

  7. The Following User Says Thank You to roytam1 For This Useful Post:

    lorents17 (4th October 2015)

  8. #6
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    BTW another person did same with advcomp
    https://github.com/dajhorn/advancecomp

    (I'll still keep my own fork here )

  9. #7
    Member
    Join Date
    Apr 2011
    Location
    Russia
    Posts
    168
    Thanks
    163
    Thanked 9 Times in 8 Posts
    del
    Last edited by lorents17; 18th March 2013 at 23:01.

  10. #8
    Member
    Join Date
    Oct 2009
    Location
    usa
    Posts
    56
    Thanks
    1
    Thanked 9 Times in 6 Posts
    I cannot execute the included GCC-compiled binaries and keep getting a "Can't find libgcc_s_dw2-1.dll" error, even though I've found this file and included it in the same directory as advzip.exe

    It seems roytam's version of AdvanceCOMP was compiled with GCC 4.8.0. Anyone have a version of that dll or can recompile with it statically-linked or included within the archive?

  11. #9
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    Quote Originally Posted by zyzzle View Post
    I cannot execute the included GCC-compiled binaries and keep getting a "Can't find libgcc_s_dw2-1.dll" error, even though I've found this file and included it in the same directory as advzip.exe

    It seems roytam's version of AdvanceCOMP was compiled with GCC 4.8.0. Anyone have a version of that dll or can recompile with it statically-linked or included within the archive?
    This one will not require libgcc.
    Attached Files Attached Files

  12. #10
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts

    advcomp with zopfli

    updated for -i N, --iterations N switch.

    zopfli will enable in -2(== -i 5), -3(== -i 15), -4(== -i 50), -i mode.
    Attached Files Attached Files
    Last edited by roytam1; 22nd March 2013 at 06:31.

  13. #11
    Member
    Join Date
    Oct 2009
    Location
    usa
    Posts
    56
    Thanks
    1
    Thanked 9 Times in 6 Posts
    Thanks, the latest version with -i works well in my Windows XP...

    Is there a chance that you can compile a DJGPP MS-DOS binary of 1.15 with Zopfli option included? Really would be neat.

  14. #12
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    Quote Originally Posted by zyzzle View Post
    Thanks, the latest version with -i works well in my Windows XP...

    Is there a chance that you can compile a DJGPP MS-DOS binary of 1.15 with Zopfli option included? Really would be neat.
    Sure. djgpp 2.03p2 gcc 4.7.2 + g++ 4.7.2 + binutils 2.23.1 compiled stripped binary(only) attached.

    A tiny patch for lib_zopfli.cc is needed.
    Code:
    --- lib_zopfli.cc	2013-03-20 11:40:28 +0800
    +++ lib_zopfli.djgpp.cc	2013-03-20 14:28:07 +0800
    @@ -24,11 +24,11 @@
     
     bool compress_zopfli(ZopfliFormat output_type, const unsigned char* in_data, unsigned in_size, unsigned char* out_data, unsigned& out_size, unsigned num_passes) throw ()
     {
         ZopfliOptions  options;
         unsigned char* zopfli_data = 0;
    -    unsigned zopfli_size = 0;
    +    size_t zopfli_size = 0;
     
         options.verbose = 0;
         options.verbose_more = 0;
         options.numiterations = (int)num_passes;
         options.blocksplitting = 1;
    Attached Files Attached Files

  15. #13
    Member
    Join Date
    Oct 2009
    Location
    usa
    Posts
    56
    Thanks
    1
    Thanked 9 Times in 6 Posts
    That's fabulous! Thank you very much for the DOS compile.

  16. #14
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Any chances of 1.16 plus zopfli?

  17. #15
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Quote Originally Posted by nikkho View Post
    Any chances of 1.16 plus zopfli?
    Sorry, just noticed the original author already did that as 1.17 (http://sourceforge.net/projects/adva...ancecomp/1.17/)

  18. #16
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    ADVANCECOMP VERSION 1.17 2013/03
    ================================

    * Changed to GPL3.
    * Added zopfli support. It's enabled using -4, --shrink-insane.
    You can control the number of iterations with the
    new -i, --iter option.
    Thanks to Darik Horn for the patches.

  19. #17
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    1.23 is out: http://www.advancemame.it/download

    Code:
    ADVANCECOMP VERSION 1.23 2016/11================================
    
    
    * Fixed build issue from source code due missing libdeflate header.
    
    
    
    
    ADVANCECOMP VERSION 1.22 2016/11
    ================================
    
    
    * Enabled again the command line wildcard expansion in the Windows
      builds. The new MingW compiler was disabling it by default.
    
    
    
    
    ADVANCECOMP VERSION 1.21 2016/11
    ================================
    
    
    * Added libdeflate support. It's the new default because it provides
      better performance and compression than 7z.
      From https://github.com/ebiggers/libdeflate
      at commit 28cc14994b8b57f590d31a7340c8fffc5cc37d88
    * Update to te latest zopfli library.
      From https://github.com/google/zopfli
      at commit 6818a0859063b946094fb6f94732836404a0d89a.
    * Windows binaries built with MingW 4.9.3 using the MXE cross compiler at
      commit 62bcdbee56e87c81f1faa105b8777a5879d4e2e with targets
      i686-w64-mingw32 and x86_64-w64-mingw32.
    * DOS binaries built with DJGPP 4.8.5 from
      https://github.com/andrewwutw/build-djgpp
    
    
    
    
    ADVANCECOMP VERSION 1.20 2015/08
    ================================
    
    
    * Fixed .gz recompression of data bigger than 400 MB.
    * Fixed .gz recompression with -0 and -1 options.
    * Updated to the latest zopfli [Aaron Kaluszka].
    * Preserve the EFS flag in .zip files [Jason Penney].
    
    
    
    
    ADVANCECOMP VERSION 1.19 2014/03
    ================================
    
    
    * Limited the iterations number to 255 with the -3 option.
    * Added a new -k, --keep-file-time option to advzip [Marco Banfi].
    * Made the Windows binary again compatible with old 686 processors.
    
    
    
    
    ADVANCECOMP VERSION 1.18 2013/11
    ================================
    
    
    * Added build support for new powerpc architectures.
    * Fixed build with BZIP.

  20. The Following User Says Thank You to nikkho For This Useful Post:

    Jaff (30th November 2016)

Similar Threads

  1. 7-Zip
    By Vacon in forum Data Compression
    Replies: 511
    Last Post: 12th July 2019, 21:47
  2. 7-zip
    By squxe in forum Forum Archive
    Replies: 19
    Last Post: 9th April 2008, 22:26
  3. QuickLZ ZIP - new zip/deflate library
    By Lasse Reinhold in forum Forum Archive
    Replies: 23
    Last Post: 1st October 2007, 22:08
  4. 7-zip 4.54 beta is out!
    By squxe in forum Forum Archive
    Replies: 9
    Last Post: 7th September 2007, 14:42
  5. 7-zip 4.53
    By squxe in forum Forum Archive
    Replies: 5
    Last Post: 28th August 2007, 03:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •