Yann Collet
5b67c7d185
Merge branch 'dev' of github.com:Cyan4973/lz4 into dev
2018-03-19 16:18:25 -07:00
Yann Collet
d6711a7cff
minor man fix on clevels
2018-03-19 16:18:10 -07:00
Yann Collet
59cf6d4004
Merge pull request #484 from lz4/fasterDict
...
Faster dictionary compression
2018-03-19 10:06:33 -07:00
Yann Collet
ac42105ad7
Merge pull request #406 from felixhandte/ref-dict-table
...
Use the Dictionary Hash Table in Place
2018-03-18 19:07:55 -07:00
W. Felix Handte
70f14823a4
Remove Framebench Tool
2018-03-14 15:59:36 -04:00
W. Felix Handte
b0a18896fe
Move LZ4_compress_fast_extState_noReset Declaration to Unstable Section
2018-03-14 15:59:33 -04:00
W. Felix Handte
66b6fbfe6f
Restore the Other Old Streaming Functions in a Degraded Fashion
2018-03-14 15:53:10 -04:00
W. Felix Handte
c852f20c39
Switch ALLOC() to ALLOC_AND_ZERO() to Paper Over Existing Uninitialized Read
2018-03-13 17:47:34 -04:00
W. Felix Handte
995756f218
Split lz4CtxLevel into Two Fields
2018-03-13 17:45:09 -04:00
W. Felix Handte
640db34e43
Another Allocation Fail Check
2018-03-13 17:35:44 -04:00
W. Felix Handte
146e676531
Restore LZ4_sizeofStreamState, We Didn't Actually Need to Delete It
2018-03-13 15:42:03 -04:00
W. Felix Handte
c4aef7cd62
Restore checkTag Cleaning
2018-03-13 15:18:08 -04:00
W. Felix Handte
2be38a7429
Rename Enums and Add Comment
2018-03-13 15:16:52 -04:00
W. Felix Handte
b8e9c77855
Whitespace Fixes
2018-03-13 13:20:37 -04:00
W. Felix Handte
5149767a1b
Add NULL Checks
2018-03-12 18:35:09 -04:00
W. Felix Handte
299f34909a
Simpler Ternary Statements
2018-03-12 18:35:09 -04:00
W. Felix Handte
f9fef255a1
Renames and Comment Fixes
2018-03-12 18:34:41 -04:00
W. Felix Handte
1df5d911aa
Hoist LZ4F Dictionary Setup into Helper LZ4F_applyCDict()
2018-03-12 16:11:55 -04:00
W. Felix Handte
3ecc1d7a5b
Minor Style Fixes
2018-03-12 16:11:44 -04:00
W. Felix Handte
e34716cc3f
Preserve currentOffset==0 When Possible
2018-03-12 14:59:28 -04:00
W. Felix Handte
5f8967b983
Specialize _extState() for Clean Ctx Rather Than Calling _safeExtState()
2018-03-12 14:58:43 -04:00
W. Felix Handte
6716325ae8
Remove Switch In Favor of Ternary Statement
2018-03-12 14:58:43 -04:00
W. Felix Handte
b4335a6585
Further Avoid a dictionary==NULL Check
2018-03-12 14:58:43 -04:00
W. Felix Handte
64bcbf400e
Optimize Dict Check Condition
2018-03-12 14:58:43 -04:00
W. Felix Handte
b78cf67c96
Move to 4KB Cut-Off
2018-03-12 14:58:43 -04:00
W. Felix Handte
00eadadbfc
Reset Table on Inputs Larger than 2KB
2018-03-12 14:58:43 -04:00
W. Felix Handte
d571d0cdba
Avoid DictSmall Checks By Strategically Bumping CurrentOffset
2018-03-12 14:58:43 -04:00
W. Felix Handte
1c4601d643
Restore DictIssue Check
2018-03-12 14:58:43 -04:00
W. Felix Handte
d6ed9a7799
Avoid dictionary == NULL Check
2018-03-12 14:58:43 -04:00
W. Felix Handte
efc419a6d4
Replace calloc() Calls With malloc() Where Possible
2018-03-12 14:58:43 -04:00
W. Felix Handte
80790c587b
Copy the Dict Table Into the Context for Large Compressions
2018-03-12 14:58:43 -04:00
W. Felix Handte
9dcd9abc14
Make LZ4F_compressFrame_usingCDict Take a Compression Context
2018-03-12 14:58:43 -04:00
W. Felix Handte
14ce912b70
Switch Current Offset to 1 Only When in External Dictionary Context Mode
2018-03-12 14:58:43 -04:00
W. Felix Handte
cea09d67a9
Hoist Table Reset One Level Up
2018-03-12 14:58:43 -04:00
W. Felix Handte
68c6bd17b8
Set Dictionary Context Pointer Rather than Copying the Context In
2018-03-12 14:58:43 -04:00
W. Felix Handte
73cc39327e
Lookup Matches in Separate Dictionary Context
2018-03-12 14:58:43 -04:00
W. Felix Handte
62cb52b341
Initialize Current Offset to 1
2018-03-12 14:58:43 -04:00
W. Felix Handte
7060bcabf0
Only Re-Alloc / Reset When Needed When Switching Between Regular and High Compression Modes
2018-03-12 14:58:43 -04:00
W. Felix Handte
b3628cb0c5
Avoid Resetting the Context When Possible
2018-03-12 14:58:43 -04:00
W. Felix Handte
aa36e118f1
Const-ify Table Arg to LZ4_getPosition(OnHash)
2018-03-12 14:58:43 -04:00
W. Felix Handte
d6a3024dbb
Add LZ4_compress_fast_safeExtState Function
2018-03-12 14:58:43 -04:00
W. Felix Handte
f34fb3c42d
Add Bounds Check to locateBuffDiff
2018-03-12 14:58:43 -04:00
W. Felix Handte
5709891de6
Add a Table Type Field to LZ4_stream_t
2018-03-12 14:58:43 -04:00
W. Felix Handte
6933f5ad9c
Remove Obsolete Stream Functions to Free Space in LZ4_stream_t
2018-03-12 14:58:43 -04:00
W. Felix Handte
6d156fea56
Allow Empty Dictionaries
2018-03-12 14:58:43 -04:00
W. Felix Handte
8c006b19bb
Add a Benchmarking Tool For Compression with Context Re-Use
2018-03-12 14:58:43 -04:00
Yann Collet
9dc249ee3c
Merge pull request #483 from lz4/dev
...
update to dev
2018-03-09 13:10:40 -08:00
Yann Collet
6c23f03b93
fix #482 : change CFLAGS to CXXFLAGS
...
as they are associated with $(CXX)
2018-03-09 11:54:32 -08:00
Yann Collet
6d4e60e365
fix #481 : ensure liblz4.a dependency for make all
...
`make all` will trigger several sub-directory makefiles.
several of them need `liblz4.a`.
When built with `-j#`, there are several concurrent liblz4.a built
Make liblz4.a a dependency, which is built once,
before moving to sub-directory Makefiles
2018-03-09 09:57:29 -08:00
Yann Collet
b5233d3726
updated LZ4F_compressBound() documentation
...
to clarify it includes potentially buffered data.
2018-02-27 23:23:27 -08:00