is it possible to reduce dictionary size (obtained from lzma header) during decoding of lzma encoded file

  • yogender

    yogender - 2014-02-21

    suppose we encode a file with lzma with default dictionary size i.e.8MB (may be less).
    then while decoding we have a allocate memory to dictionary buffer with size which is obtained from lzma header(5 byte header) during lzmaInit().
    since i'm having some memory is it possible to decode it with less dictionary size .
    lzma.exe provides an argument for setting dictionary size while encoding and decoding.
    but source code doesn't takes 4th argument.

    Last edit: yogender 2014-02-21
  • Igor Pavlov

    Igor Pavlov - 2014-02-21

    Read lzma.txt
    7-zip needs for decoding:
    ram_buffer_size = min(dictionary_size, uncompressed_size)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks