Results 1 to 5 of 5

Thread: Smallest LZMA Decompressor

  1. #1
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    331
    Thanks
    191
    Thanked 55 Times in 39 Posts

    Cool Smallest LZMA Decompressor

    Hello everyone,

    I've been working on making the smallest possible LZMA decompressor.

    I used Eugene's LZMA source code (http://nishi.dreamhosters.com/u/lzma.rar) to create this.

    I'm sure someone has made a smaller LZMA decompressor executable. But, I thought I'd share mine for anyone who is interested. Note that decompression speed DID NOT decrease with this exe. If someone is interested, I can always make it smaller stil but also lose performance.

    USAGE:
    Code:
    decomp.exe d file.lzma file.unp
    Have fun and please share a smaller exe if you have one!
    Attached Files Attached Files
    Last edited by comp1; 3rd October 2018 at 09:51.

  2. Thanks (2):

    Bulat Ziganshin (1st October 2018),Mike (1st October 2018)

  3. #2
    Programmer Bulat Ziganshin's Avatar
    Join Date
    Mar 2007
    Location
    Uzbekistan
    Posts
    4,553
    Thanks
    767
    Thanked 685 Times in 371 Posts
    Can we please have it in source form, preferably on github?

  4. #3
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    331
    Thanks
    191
    Thanked 55 Times in 39 Posts
    Quote Originally Posted by Bulat Ziganshin View Post
    Can we please have it in source form, preferably on github?
    Bulat, small size is achieved during compilation/linking, not in source.

    The only change I made to the source in lzma.rar is to LzmaUtil.c. I removed the "e" parameter so that Visual Studio would allow me to excluse LzmaEnc.c without error.

  5. Thanks:

    Bulat Ziganshin (2nd October 2018)

  6. #4
    Member
    Join Date
    May 2012
    Location
    United States
    Posts
    331
    Thanks
    191
    Thanked 55 Times in 39 Posts
    Updated first post with new, smaller exe.

  7. #5
    Member
    Join Date
    Apr 2009
    Location
    China
    Posts
    20
    Thanks
    0
    Thanked 1 Time in 1 Post
    Based LzmaDecodeSize.c and LzmaUtil. No more optimization for size after compiling.
    Attached Files Attached Files

  8. Thanks:

    comp1 (9th October 2018)

Similar Threads

  1. Replies: 13
    Last Post: 16th March 2019, 01:58
  2. Replies: 30
    Last Post: 2nd October 2018, 14:52
  3. LZMA decompressor
    By xezz in forum Data Compression
    Replies: 9
    Last Post: 19th May 2016, 17:34
  4. Fastest decompressor!?
    By Sanmayce in forum Data Compression
    Replies: 66
    Last Post: 13th April 2011, 01:18
  5. Delete smallest file if not smaller then Xpercentage
    By SvenBent in forum Data Compression
    Replies: 2
    Last Post: 5th January 2009, 23:41

Posting Permissions

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