Git Product home page Git Product logo

fast-lzma2's People

Contributors

conor42 avatar jinfeihan57 avatar nemequ avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fast-lzma2's Issues

No documentation?

Is there any documentation for flzma2, e.g. max dictionary size, fast bytes, cycles, compression levels etc.? I've been wading through the source to look for selectable parameters, saw that dictionary is limited to 1024MB, and apparently there are 3 compression strategies with 10 compression levels each, but I have no idea how to call them. Any help would be much appreciated.

7-Zip ZS addin

Hello,

I just started to do some work on 7-Zip ZS again... how could this "faster" lzma put together within 7-Zip without too much hassle ?

Your code is currently out of the master branch, but there is an extra branch called radyx ;-)

Greetings, Tino

How to integrate into LibTIFF which checks existence of lzma.h

I am trying to integrate LZMA2 functionality into LibTIFF (https://gitlab.com/libtiff/libtiff) using CMake. Without it LibTIFF will complain when running cmake:

-- LZMA2 support: ON (requested) FALSE (availability)

The CMakeLists.txt of LibTIFF tests existence of LZMA2 library using CMake's own script in Modules\FindLibLZMA.cmake. This file tries to check the existence of lzma.h to decide the include directory:

find_path(LIBLZMA_INCLUDE_DIR lzma.h )
find_library(LIBLZMA_LIBRARY NAMES lzma liblzma)

But I could not find lzma.h anywhere in the downloaded source package from here. Also the lzma.lib and liblzma.lib do not exist either in output folder of fast-lzma2 after I successfully built it, which are to be linked to LibTIFF. So how to integrate Fast LZMA2 into LibTIFF using CMake? Thanks.

My environment:

  • Windows 10
  • Visual Studio 2015 & 2017
  • CMake 3.11.4

How to cancel decompression?

Is there correct way to cancel decompression of the stream? I am using similar code as in the file_test.c file. i.e. I call FL2_createDStreamMt once at start and then for each stream stored in a file I call FL2_initDStream and then keep calling FL2_decompressStream until I decompress all data. But if my file reading function returns an error, what should I call to cancel the decompression so that next FL2_initDStream doesn't return an error (unfinished decompression of previous stream)? It seems the example in file_test.c doesn't handle reading errors and they are just ignored. I found FL2_cancelDStream, is this the function I should call?

RMF_structuredInit is missing

RMF_structuredInit in FL2_compressCurBlock()
RMF_structuredBuildTable in FL2_compressCurBlock()
RMF_structuredIntegrityCheck in RMF_integrityCheck()
RMF_structuredGetMatch in RMF_getMatch()

Crashes in the RMF_handleRepeat

I am use FLZMA library in the 7zip library of ZA (Android app)

I can not find the reasons of the crashes. I've made minor changes to the code. A couple of small checks. But this did not change the situation. The stack trace and modified source code are attached below.

I have not been able to reproduce the problem. In what cases the problem occurs is also not known.
@conor42, maybe you have some ideas about this?

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

backtrace:
  #00  pc 00000000003560d4  /data/app/zarchiver/lib/arm64/libp7zip.so (RMF_handleRepeat) (SourceCode: p7zip/C/fast-lzma2/radix_mf.c:306)
  #00  pc 00000000003560d4  /data/app/zarchiver/lib/arm64/libp7zip.so (RMF_recurseListChunk_generic) (SourceCode: p7zip/C/fast-lzma2/radix_mf.c:565)
  #00  pc 00000000003560d4  /data/app/zarchiver/lib/arm64/libp7zip.so (RMF_recurseListChunk) (SourceCode: p7zip/C/fast-lzma2/radix_mf.c:673)
  #00  pc 00000000003581d0  /data/app/zarchiver/lib/arm64/libp7zip.so (RMF_recurseListsBuffered) (SourceCode: p7zip/C/fast-lzma2/radix_engine.h:259)
  #00  pc 0000000000357494  /data/app/zarchiver/lib/arm64/libp7zip.so (RMF_bitpackBuildTable) (SourceCode: p7zip/C/fast-lzma2/radix_engine.h:978)
  #00  pc 0000000000357494  /data/app/zarchiver/lib/arm64/libp7zip.so (RMF_buildTable) (SourceCode: p7zip/C/fast-lzma2/radix_mf.c:689)
  #00  pc 0000000000346bb0  /data/app/zarchiver/lib/arm64/libp7zip.so (FL2_compressCurBlock_blocking) (SourceCode: p7zip/C/fast-lzma2/fl2_compress.c:311)
  #00  pc 00000000003466b8  /data/app/zarchiver/lib/arm64/libp7zip.so (FL2_compressCurBlock_async) (SourceCode: p7zip/C/fast-lzma2/fl2_compress.c:366)
  #00  pc 0000000000348f14  /data/app/zarchiver/lib/arm64/libp7zip.so (FL2POOL_thread) (SourceCode: p7zip/C/fast-lzma2/fl2_pool.c:79)
  #00  pc 0000000000084ce4  /system/lib64/libc.so (__pthread_start(void*)+36)
  #00  pc 000000000002344c  /system/lib64/libc.so (__start_thread+68)

FLZMA source fast-lzma2.tar.gz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.