conor42 / fast-lzma2 Goto Github PK
View Code? Open in Web Editor NEWFast LZMA2 Library
License: BSD 3-Clause "New" or "Revised" License
Fast LZMA2 Library
License: BSD 3-Clause "New" or "Revised" License
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.
Good day!
It will be good (for very bit data sizes) to add support for 4096 MB dictionary size for lzma-fast
Can data compressed with fast-lzma2 be decompressed by a binary utilizing the lzma2 library?
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
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:
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 in FL2_compressCurBlock()
RMF_structuredBuildTable in FL2_compressCurBlock()
RMF_structuredIntegrityCheck in RMF_integrityCheck()
RMF_structuredGetMatch in RMF_getMatch()
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.