]> git.ipfire.org Git - thirdparty/zstd.git/commit
Expose reference external sequence API
authorNick Terrell <terrelln@fb.com>
Thu, 15 Mar 2018 00:26:31 +0000 (17:26 -0700)
committerNick Terrell <terrelln@fb.com>
Thu, 15 Mar 2018 01:07:53 +0000 (18:07 -0700)
commita271399c978a2224976b5a00e83ea22d812efc15
treea25c1b73fd83f7e70a984f17433bc39ff26da610
parenta9a6dcba63805ba3d514bfd314571c2374de9ec2
parent49ce7a0edf4967cd8928b419b9cda5b6cd18ecd2
Expose reference external sequence API

Summary:
* Expose the reference external sequences API for zstdmt.
  Allows external sequences of any length, which get split when necessary.
* Reset the LDM window when the context is reset.
* Store the maximum number of LDM sequences.
* Sequence generation now returns the number of last literals.
* Fix sequence generation to not throw out the last literals when blocks of
  more than 1 MB are encountered.

Expose reference external sequence API

* Expose the reference external sequences API for zstdmt.
* Allows external sequences of any length, which get split when necessary.
* Reset the LDM window when the context is reset.
* Store the maximum number of LDM sequences.
* Sequence generation now returns the number of last literals.
* Fix sequence generation to not throw out the last literals when blocks of
  more than 1 MB are encountered.

Test Plan:
* CI
* Test the zstdmt ldm integration stacked on top of this diff

Reviewers: cyan

Differential Revision: https://phabricator.intern.facebook.com/D7283968

Tasks: T25664120
lib/compress/zstd_compress.c
lib/compress/zstd_compress_internal.h
lib/compress/zstd_ldm.c