summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* clarify constant MFLIMITYann Collet2018-09-111-4/+5
| | | | | | | and separate it from MATCH_SAFEGUARD_DISTANCE. While both constants have same value, they do not seve same purpose, hence should not be confused.
* fixed minor warning in fuzzer.cYann Collet2018-09-102-10/+12
| | | | added a few more comments and assert()
* restored nullifying outputYann Collet2018-09-101-1/+5
| | | | to counter possible (offset==0)
* removed temporary debug tracesYann Collet2018-09-101-2/+0
|
* Merge branch 'dev' into partialDecodeYann Collet2018-09-102-11/+20
|\
| * Merge pull request #569 from lz4/circle2Yann Collet2018-09-102-48/+58
| |\ | | | | | | Migrate CircleCI tests from 1.0 towards 2.0
| | * Merge branch 'dev' of github.com:Cyan4973/lz4 into devYann Collet2018-09-101-1/+1
| | |\
| * | \ Merge pull request #565 from lz4/lz4f_initYann Collet2018-09-101-10/+19
| |\ \ \ | | |_|/ | |/| | Introduced constants LZ4F_INIT_*
| | * | added comments on version numbersYann Collet2018-09-061-5/+6
| | | |
| | * | Introduced constants LZ4F_INIT_*Yann Collet2018-09-051-9/+17
| | | | | | | | | | | | | | | | | | | | to simplify initialization of lz4frame.h structures. Partially in response to #546.
| * | | Add support for MidnightBSDLucas Holt2018-09-081-1/+1
| | | |
* | | | fixed fuzzer testYann Collet2018-09-081-4/+6
| | | | | | | | | | | | | | | | and removed one blind copy, since there is no more guarantee that at least 4 bytes are still available in output buffer
* | | | updated function interface documentationYann Collet2018-09-071-5/+19
| | | |
* | | | first sketch for a byte-accurate partial decoderYann Collet2018-09-072-49/+81
| |_|/ |/| |
* | | updated API documentationYann Collet2018-09-072-48/+58
|/ /
* | Merge pull request #563 from lz4/docDictYann Collet2018-09-061-1/+1
|\ \ | |/ |/| updated documentation for dictionary compression
| * updated documentation regarding dictionary compressionYann Collet2018-09-051-1/+1
| | | | | | | | | | | | following suggestion from @stbrumme (#558) Also : bumped version number, regenerated man page and html doc
* | removed one assert() conditionYann Collet2018-09-051-2/+1
| | | | | | | | which is not correct when using LZ4_HC with dictionary and starting from a low address (<0x10000).
* | fixed #560Yann Collet2018-09-051-0/+4
|/ | | | | | | it was a fairly complex scenario, involving source files > 64K and some extraordinary conditions related to specific layout of ranges of zeroes. and only on level 9.
* fixed spelling mistake in lz4.hJack Luo2018-07-291-1/+1
|
* Merge pull request #547 from jennifermliu/devYann Collet2018-07-171-2/+2
|\ | | | | Add --fast command to cli
| * Fixed bugs about incorrect acceleration calculation and benchmarking ↵Jennifer Liu2018-06-271-2/+2
| | | | | | | | negative compresion level
* | Fix LZ4_compress_fast_continue() docsNick Terrell2018-07-101-1/+1
|/ | | | Fixes #549.
* Merge pull request #542 from wbx-github/devYann Collet2018-05-291-3/+4
|\ | | | | allow to override uname when cross-compiling
| * allow to override uname when cross-compilingWaldemar Brodkorb2018-05-221-3/+4
| | | | | | | | | | | | When cross-compiling for example from Darwin to Linux it might be useful to override uname output to force Linux and create Linux libraries instead of Darwin libraries.
* | Also Fix Appveyor Cast WarningW. Felix Handte2018-05-221-1/+1
| |
* | Add `extern "C"` Guards Around Experimental HC DeclarationsW. Felix Handte2018-05-221-0/+8
| |
* | Remove #define-rename of `LZ4_decompress_safe_forceExtDict`W. Felix Handte2018-05-221-8/+8
| |
* | Test Linking C-Compiled Library and C++-Compiled TestsW. Felix Handte2018-05-221-0/+15
|/
* Add Haiku as a validated target.fbrosson2018-05-171-1/+1
| | | | lz4 1.8.2 works fine on Haiku and passes all tests.
* Merge pull request #537 from lz4/xpHCmf2Yann Collet2018-05-071-48/+81
|\ | | | | Speed optimization for optimal parser
| * renamed variable for clarityYann Collet2018-05-071-12/+12
| |
| * fixed minor conversion warningYann Collet2018-05-071-1/+2
| |
| * small PA optimizationYann Collet2018-05-061-11/+18
| | | | | | | | | | which measurably improves speed on levels 9+
| * lz4hc: fixed PA / SC parameter orderYann Collet2018-05-051-5/+5
| | | | | | | | | | | | also : reserved PA for levels 9+ (instead of 8+). In most cases, speed is lower, and compression benefit is not worth.
| * lz4hc: SC only enabled for opt parserYann Collet2018-05-051-7/+7
| | | | | | | | | | the trade off is not good for regular HC parser : compression is a little bit better, but speed cost is too large in comparison.
| * fixed SC.opt integration with regular HC parserYann Collet2018-05-051-4/+4
| | | | | | | | | | | | | | | | Only enabled when searching forward. note : it slighly improves compression ratio, but measurably decreases speed. Trade-off to analyse.
| * lz4hc: fixed performance issueYann Collet2018-05-051-114/+20
| | | | | | | | when combining both PA and CS optimizations
| * integrated chain swapper into HC match finderYann Collet2018-05-051-45/+76
| | | | | | | | | | | | | | slower than expected Pattern analyzer and Chain Swapper work slower when both activated. Reasons unclear.
| * implemented search acceleratorYann Collet2018-05-031-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | greatly improves speed compared to non-accelerated, especially for slower files. On my laptop, -b12 : ``` calgary.tar : 4.3 MB/s => 9.0 MB/s enwik7 : 10.2 MB/s => 13.3 MB/s silesia.tar : 4.0 MB/s => 8.7 MB/s ``` Note : this is the simplified version, without handling dictionaries, external buffer, nor pattern analyzer. Current `dev` branch on these samples gives : ``` calgary.tar : 4.2 MB/s enwik7 : 9.7 MB/s silesia.tar : 3.5 MB/s ``` interestingly, it's slower, presumably due to handling of dictionaries.
| * created LZ4HC_FindLongestMatch()Yann Collet2018-05-031-16/+88
| | | | | | | | | | | | simplified match finder only searching forward and within current buffer, for easier testing of optimizations.
* | Merge pull request #538 from lz4/frameTestErrorYann Collet2018-05-072-3/+19
|\ \ | | | | | | Fix frametest error
| * | small extDict : fixed side-effectYann Collet2018-05-062-3/+7
| | | | | | | | | | | | | | | | | | don't fix dictionaries of size 0. setting dictEnd == source triggers prefix mode, thus removing possibility to use CDict.
| * | fixed frametest errorYann Collet2018-05-062-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The error can be reproduced using following command : ./frametest -v -i100000000 -s1659 -t31096808 It's actually a bug in the stream LZ4 API, when starting a new stream and providing a first chunk to complete with size < MINMATCH. In which case, the chunk becomes a dictionary. No hash was generated and stored, but the chunk is accessible as default position 0 points to dictStart, and position 0 is still within MAX_DISTANCE. Then, next attempt to read 32-bits from position 0 fails. The issue would have been mitigated by starting from index 64 KB, effectively eliminating position 0 as too far away. The proper fix is to eliminate such "dictionary" as too small. Which is what this patch does.
* | | Fix make installNick Terrell2018-05-041-34/+36
|/ / | | | | | | | | | | | | | | | | * Uninstall didn't remove the pkg-config correctly. * Fix `mandir` * Allow overriding either upper- or lower-case location variables, but always use the lower case variables. * Add test case that ensures overriding both upper- and lower-case variables is the same, and that the directory is empty after uninstall.
* | Merge pull request #529 from felixhandte/lz4f-fast-reset-for-streaming-onlyYann Collet2018-05-032-10/+33
|\ \ | |/ |/| LZ4F: Only Reset the LZ4_stream_t when Init'ing a Streaming Block
| * Only Reset the LZ4 Stream when Init'ing a Streaming BlockW. Felix Handte2018-05-032-10/+33
| |
* | Merge branch 'dev' into lz4fRingBufferYann Collet2018-05-031-10/+8
|\ \
| * \ Merge pull request #528 from lz4/complexShortcutYann Collet2018-05-032-49/+108
| |\ \ | | | | | | | | Faster decoding speed
| | * | fix comments / indentationCyan49732018-05-031-10/+8
| | | | | | | | | | | | | | | | as requested by @terrelln