]>
git.ipfire.org Git - thirdparty/zstd.git/log
W. Felix Handte [Mon, 1 Oct 2018 20:28:13 +0000 (13:28 -0700)]
Revert Ability to Set HashLog and ChainLog on Context When Dict is Attached
This capability is not needed / used in the current unit of work. I'll
re-introduce it later, when we start allowing users to override the deduced
working context logs.
W. Felix Handte [Wed, 26 Sep 2018 17:56:28 +0000 (10:56 -0700)]
Restore Passing CParams to `ZSTD_insertAndFindFirstIndex_internal`
W. Felix Handte [Thu, 13 Sep 2018 18:13:08 +0000 (11:13 -0700)]
Use Working Ctx Logs when not in DMS Mode
We pre-hash the ptr for the dict match state sometimes. When that actually
happens, a hashlog of 0 can produce undefined behavior (right shift a long
long by 64). Only applies to unoptimized compilations, since when
optimizations are applied, those hash operations are dropped when we're not
actually in dms mode.
W. Felix Handte [Wed, 12 Sep 2018 19:29:53 +0000 (12:29 -0700)]
When Attaching Dictionary, Size Working Tables Based on Input Size Only
W. Felix Handte [Wed, 12 Sep 2018 19:28:53 +0000 (12:28 -0700)]
Remove Log Overriding for the Time Being
W. Felix Handte [Wed, 12 Sep 2018 19:04:04 +0000 (12:04 -0700)]
Remove Strategy-Dependency in Making Attachment Decision
W. Felix Handte [Mon, 27 Aug 2018 23:37:04 +0000 (16:37 -0700)]
Support Split Logs in ZSTD_btopt..ZSTD_btultra
W. Felix Handte [Mon, 27 Aug 2018 23:36:52 +0000 (16:36 -0700)]
Bump Split Log Support to ZSTD_btultra
W. Felix Handte [Mon, 27 Aug 2018 23:19:41 +0000 (16:19 -0700)]
Support Split Logs in ZSTD_greedy..ZSTD_btlazy2
W. Felix Handte [Mon, 27 Aug 2018 23:19:24 +0000 (16:19 -0700)]
Bump Split Log Support to ZSTD_btlazy2
W. Felix Handte [Mon, 27 Aug 2018 22:23:51 +0000 (15:23 -0700)]
Support Split Logs in ZSTD_dfast
W. Felix Handte [Mon, 27 Aug 2018 22:23:27 +0000 (15:23 -0700)]
Bump Split Log Support to ZSTD_dfast
W. Felix Handte [Thu, 23 Aug 2018 21:49:09 +0000 (14:49 -0700)]
Support a Separate Hash Log in ZSTD_fast
W. Felix Handte [Thu, 23 Aug 2018 21:21:35 +0000 (14:21 -0700)]
Stop Passing in `hashLog` and `stepSize` to `ZSTD_compressBlock_fast_generic`
W. Felix Handte [Mon, 27 Aug 2018 22:09:56 +0000 (15:09 -0700)]
Temporary Commit to Retain Requested Hash and Chain Logs During Dict Attach
W. Felix Handte [Mon, 27 Aug 2018 22:09:25 +0000 (15:09 -0700)]
Allow Setting Hash and Chain Logs on Contexts with Attached CDict
W. Felix Handte [Mon, 27 Aug 2018 20:21:01 +0000 (13:21 -0700)]
For Supported Strategies, Attach Dict Even When Params Don't Match
W. Felix Handte [Fri, 24 Aug 2018 22:54:58 +0000 (15:54 -0700)]
Split Attach and Copy Reset Strategies into Separate Implementation Functions
W. Felix Handte [Fri, 24 Aug 2018 20:13:48 +0000 (13:13 -0700)]
Pull Attachment Decision into Separate Function
W. Felix Handte [Thu, 23 Aug 2018 21:36:51 +0000 (14:36 -0700)]
And Then Avoid the Unused Parameter Warning
W. Felix Handte [Thu, 23 Aug 2018 21:09:18 +0000 (14:09 -0700)]
Move Asserts into Function to Avoid Unused Function Warning
W. Felix Handte [Thu, 23 Aug 2018 19:53:16 +0000 (12:53 -0700)]
Move Match State CParams Setting into `resetCCtx` and `continueCCtx`
W. Felix Handte [Thu, 23 Aug 2018 19:35:03 +0000 (12:35 -0700)]
Strengthen Assertion to Assert Equality
W. Felix Handte [Thu, 23 Aug 2018 19:21:27 +0000 (12:21 -0700)]
Remove CParams Arg from ZSTD_ldm_blockCompress
W. Felix Handte [Thu, 23 Aug 2018 19:17:58 +0000 (12:17 -0700)]
Stop Separately Passing CParams in ZSTD_lazy Internal Functions
W. Felix Handte [Thu, 23 Aug 2018 19:11:20 +0000 (12:11 -0700)]
Stop Separately Passing CParams in ZSTD_opt Internal Functions
W. Felix Handte [Thu, 23 Aug 2018 19:08:03 +0000 (12:08 -0700)]
Also Remove CParams from Table Filling Functions' Args
W. Felix Handte [Thu, 23 Aug 2018 18:57:54 +0000 (11:57 -0700)]
Also Assert Equivalency When Filling MatchState with Prefix
W. Felix Handte [Thu, 23 Aug 2018 18:53:34 +0000 (11:53 -0700)]
Remove CParams from Block Compressor Functions' Args
W. Felix Handte [Thu, 23 Aug 2018 18:38:35 +0000 (11:38 -0700)]
Assert `ctx` and `ms` cparams Equivalency
W. Felix Handte [Thu, 23 Aug 2018 18:33:08 +0000 (11:33 -0700)]
Remove cParams from CDict
W. Felix Handte [Thu, 23 Aug 2018 18:32:32 +0000 (11:32 -0700)]
Add ZSTD_compressionParameters to ZSTD_matchState_t
Nick Terrell [Fri, 28 Sep 2018 02:29:02 +0000 (19:29 -0700)]
Merge pull request #1343 from terrelln/faster-ci
[zstreamtest] Reduce memory of newapi tests
Yann Collet [Fri, 28 Sep 2018 02:23:27 +0000 (19:23 -0700)]
Merge pull request #1345 from facebook/fixLegacy
fixed legacy compilation tests
Yann Collet [Fri, 28 Sep 2018 01:24:41 +0000 (18:24 -0700)]
fixed longmatch test too
Yann Collet [Fri, 28 Sep 2018 01:15:14 +0000 (18:15 -0700)]
fixed legacy compilation tests
for some reason, these tests started failing recently on CircleCI
Yann Collet [Fri, 28 Sep 2018 00:36:54 +0000 (17:36 -0700)]
Merge pull request #1344 from terrelln/grub-fixes
Fixes for GRUB
Nick Terrell [Thu, 27 Sep 2018 23:06:02 +0000 (16:06 -0700)]
Restore ZSTD_noCompressBlock() for clarity
Nick Terrell [Thu, 27 Sep 2018 22:49:31 +0000 (15:49 -0700)]
Reset number of threads less often
Nick Terrell [Thu, 27 Sep 2018 22:23:20 +0000 (15:23 -0700)]
Change byte to value to avoid a GRUB typedef
Nick Terrell [Thu, 27 Sep 2018 22:22:34 +0000 (15:22 -0700)]
Include stddef.h for size_t
Nick Terrell [Thu, 27 Sep 2018 22:13:43 +0000 (15:13 -0700)]
[zstd] Add -Wmissing-prototypes
Nick Terrell [Thu, 27 Sep 2018 20:55:24 +0000 (13:55 -0700)]
More aggressive limitations
Nick Terrell [Thu, 27 Sep 2018 19:48:29 +0000 (12:48 -0700)]
[zstreamtest] Reduce memory of newapi tests
We could allocate up to 2^28 bytes of memory when using 2 threads with
window log = 24. Now, we limit it to 2^26 bytes of memory when not running
big tests.
I chose max window log = 22 since that is the maximum source size when
big tests are disabled. Hopefully this will be enough to reduce or
eliminate the test failures.
Yann Collet [Thu, 27 Sep 2018 17:20:14 +0000 (10:20 -0700)]
Merge pull request #1342 from facebook/fixcatyd
fix : huge (>4GB) chain of blocks
Yann Collet [Thu, 27 Sep 2018 01:06:53 +0000 (18:06 -0700)]
moved again overflow correction
cannot work from within ZSTD_compressBlock()
Yann Collet [Wed, 26 Sep 2018 22:52:23 +0000 (15:52 -0700)]
Merge pull request #1340 from terrelln/generate-artifacts
Publish artifacts with CircleCI
Yann Collet [Wed, 26 Sep 2018 22:35:38 +0000 (15:35 -0700)]
changed overflow correction place
keep one in compress_frameChunk(),
so that it's tested at every loop
in case some user simply some large mulit-GB input in a single invocation.
Add one in ZSTD_compressBlock(),
since compressBlock() explicitly skips frameChunk().
Yann Collet [Wed, 26 Sep 2018 21:39:20 +0000 (14:39 -0700)]
Merge pull request #1339 from facebook/grep_colors
fixed usage of grep in Makefile
Yann Collet [Wed, 26 Sep 2018 21:39:08 +0000 (14:39 -0700)]
Merge pull request #1327 from facebook/adapt
Adaptive compression
Yann Collet [Wed, 26 Sep 2018 21:24:28 +0000 (14:24 -0700)]
fix : huge (>4GB) stream of blocks
experimental function ZSTD_compressBlock() is designed for very small data in mind,
for situation where saving the ~12 bytes of frame header can actually make a difference.
Some systems though may have to deal with small and large data entangled.
If it's larger than a block (> 128KB), compressBlock() cannot compress them in one round.
That's why it's possible to compress in multiple rounds.
This is a chain of compressed blocks.
Some users push this capability to the limit, encoding gigantic chain of blocks.
On crossing the 4GB limit, some internal overflow occurs.
This fix moves the overflow correction mechanism higher in the call chain,
so that it's applied also to gigantic chains of blocks.
Added a test case in fuzzer.c, which crashes before the fix, and pass now.
Yann Collet [Wed, 26 Sep 2018 20:40:35 +0000 (13:40 -0700)]
Merge pull request #1338 from facebook/rfc
updated format documentation
Yann Collet [Wed, 26 Sep 2018 20:40:20 +0000 (13:40 -0700)]
Merge pull request #1337 from facebook/test_failure
fixed `!` tests
Yann Collet [Wed, 26 Sep 2018 20:39:05 +0000 (13:39 -0700)]
Merge pull request #1329 from facebook/v04isout
Changed default legacy support to v0.5+
Nick Terrell [Tue, 25 Sep 2018 23:10:17 +0000 (16:10 -0700)]
Publish artifacts with CircleCI
* Updates CircleCI to use workflows.
We can now specify any number of test jobs to run in parallel.
* Switch the image to `buildpack-deps:trusty` which is only 500 MB
instead of 7 GB, so that saves 7 minutes to download it if it isn't
already cached on the host.
* Publish the source tarball and sha256sum as artifacts.
* If the `GITHUB_TOKEN` environment variable is set, we will also
add the tarball + sha256sum to the tagged release, after manual
approval.
Yann Collet [Tue, 25 Sep 2018 23:56:53 +0000 (16:56 -0700)]
fixed usage of grep in Makefile
when terminal uses colors
as suggested by @danielshir (#1294)
Yann Collet [Tue, 25 Sep 2018 23:34:26 +0000 (16:34 -0700)]
updated format documentation
to match last edits of RFC8478.
Yann Collet [Tue, 25 Sep 2018 01:16:08 +0000 (18:16 -0700)]
bounds for --adapt mode
can supply min and max compression level through advanced command :
--adapt=min=#,max=#
Yann Collet [Tue, 25 Sep 2018 22:57:28 +0000 (15:57 -0700)]
fixed `!` tests
Sometimes, it's necessary to test that a certain command fail, as expected.
Such failure is actually a success, and must not stop the flow of tests.
Several tests were prefixed with `!` to invert return code.
This does not work : it effectively makes the tests pass no matter what.
Use instead function die(), which is meant to trap successes, and transform them into errors.
Yann Collet [Mon, 24 Sep 2018 23:56:45 +0000 (16:56 -0700)]
Merge branch 'dev' into adapt
Yann Collet [Mon, 24 Sep 2018 23:01:13 +0000 (16:01 -0700)]
Merge pull request #1332 from facebook/minclevel
defined a minimum negative level
Yann Collet [Mon, 24 Sep 2018 21:49:16 +0000 (14:49 -0700)]
Merge pull request #1336 from facebook/scanbuild
fixed minor scan-build warnings
Yann Collet [Mon, 24 Sep 2018 21:49:03 +0000 (14:49 -0700)]
Merge pull request #1335 from facebook/limits
added some tests based on limits.h
Yann Collet [Mon, 24 Sep 2018 07:52:19 +0000 (00:52 -0700)]
fixed minor scan-build warnings
Yann Collet [Mon, 24 Sep 2018 06:57:30 +0000 (23:57 -0700)]
added some tests based on limits.h
in order to ensure proper type mapping
when not using stdint.h
Yann Collet [Sun, 23 Sep 2018 00:21:39 +0000 (17:21 -0700)]
fixed zstd-decompress
which cannot support ZSTD_minCLevel()
Yann Collet [Sat, 22 Sep 2018 23:11:55 +0000 (16:11 -0700)]
Merge pull request #1331 from facebook/mingw
fix mingw compatibility
Yann Collet [Sat, 22 Sep 2018 23:10:10 +0000 (16:10 -0700)]
enforce minimum compression level limit
using ZSTD_minCLevel()
Yann Collet [Sat, 22 Sep 2018 01:23:32 +0000 (18:23 -0700)]
fixed constant comparison on 32-bits systems
Yann Collet [Sat, 22 Sep 2018 00:40:30 +0000 (17:40 -0700)]
avoid recompiling dll every time under mingw
Yann Collet [Sat, 22 Sep 2018 00:36:00 +0000 (17:36 -0700)]
fix pzstd compatibility with mingw
some details changed with introduction of gcc7
Yann Collet [Sat, 22 Sep 2018 00:28:37 +0000 (17:28 -0700)]
fix constant redeclaration in paramgrill
Yann Collet [Fri, 21 Sep 2018 23:35:43 +0000 (16:35 -0700)]
simplified "slows down when compression blocked"
Yann Collet [Fri, 21 Sep 2018 23:00:46 +0000 (16:00 -0700)]
Merge branch 'mingw' into adapt
Yann Collet [Fri, 21 Sep 2018 22:37:30 +0000 (15:37 -0700)]
ensure all writes to job->cSize are mutex protected
even when reporting errors,
using a macro for code brevity, as suggested by @terrelln,
Yann Collet [Fri, 21 Sep 2018 22:04:43 +0000 (15:04 -0700)]
fixed tautological tests
involving ZSTD_TARGETLENGTH_MIN (== 0)
Yann Collet [Fri, 21 Sep 2018 21:56:57 +0000 (14:56 -0700)]
Merge branch 'mingw' into minclevel
Yann Collet [Fri, 21 Sep 2018 21:46:09 +0000 (14:46 -0700)]
fix mingw compatibility
only enable backtraces for platforms we know support it
aka mac OS-X and Linux.
can be extended later.
Yann Collet [Fri, 21 Sep 2018 19:15:33 +0000 (12:15 -0700)]
Merge pull request #1318 from felixhandte/shadow-dict-matches
Don't Search Dictionary Context When Working Context Search Resulted in Mismatch
Yann Collet [Thu, 20 Sep 2018 23:17:49 +0000 (16:17 -0700)]
defined a minimum negative level
which can be probed using new function ZSTD_minCLevel().
Also : redefined ZSTD_TARGETLENGTH_MIN/MAX for consistency
used the opportunity to bump version number to v1.3.6
Yann Collet [Thu, 20 Sep 2018 21:59:11 +0000 (14:59 -0700)]
fixed versions-test to only test v0.5+
since zstd_devel is no longer compatible with v0.4+
Yann Collet [Thu, 20 Sep 2018 21:24:23 +0000 (14:24 -0700)]
Changed default legacy support to v0.5+
thus dropping read support for v0.4.
It's always possible to re-enable it, by changing build macro ZSTD_LEGACY_SUPPORT to 4.
Yann Collet [Thu, 20 Sep 2018 20:47:31 +0000 (13:47 -0700)]
fixed complex tsan issue
when job->consumed == job->src.size , compression job is presumed completed,
so it must be the very last action done in worker thread.
Yann Collet [Thu, 20 Sep 2018 20:00:11 +0000 (13:00 -0700)]
fixed minor gcc warning on a unused variable
Yann Collet [Thu, 20 Sep 2018 00:37:22 +0000 (17:37 -0700)]
updated man page
and added `--adapt` test in `playTests.sh`
Yann Collet [Wed, 19 Sep 2018 23:30:55 +0000 (16:30 -0700)]
fixed minor reporting discrepancy in MT mode
Yann Collet [Wed, 19 Sep 2018 22:09:45 +0000 (15:09 -0700)]
removed static variables
so that --adapt can work on multiple input files too
Yann Collet [Wed, 19 Sep 2018 21:49:13 +0000 (14:49 -0700)]
error out when --adapt is associated with --single-thread
since they are not compatible
Yann Collet [Wed, 19 Sep 2018 19:43:42 +0000 (12:43 -0700)]
Merge branch 'dev' into adapt
Yann Collet [Tue, 18 Sep 2018 22:28:34 +0000 (15:28 -0700)]
Merge pull request #1326 from facebook/refPrefix
updated documentation of *refPrefix()
Yann Collet [Tue, 18 Sep 2018 20:07:08 +0000 (13:07 -0700)]
updated documentation of *refPrefix()
indicating the equivalence with `diff` operation.
Nick Terrell [Mon, 17 Sep 2018 21:40:27 +0000 (14:40 -0700)]
Merge pull request #1321 from bket/non-portable
'head -c BYTES' is non-portable.
Yann Collet [Mon, 17 Sep 2018 21:10:17 +0000 (14:10 -0700)]
Merge pull request #1324 from ko-zu/fixclangcode
Fix largeNbDicts bench for clangbuild
Björn Ketelaars [Sat, 30 Jun 2018 13:42:42 +0000 (15:42 +0200)]
'head -c BYTES' is non-portable.
tests/playTests.sh uses 'head -c' in a couple of tests to truncate the
last byte of a file. The '-c' option is non-portable (not in POSIX).
Instead use a wrapper around dd (truncateLastByte).
Nick Terrell [Mon, 17 Sep 2018 18:04:51 +0000 (11:04 -0700)]
Merge pull request #1322 from azat-archive/seekable-fixes-pull
Fixes read write past end of input buffer.
ko-zu [Mon, 17 Sep 2018 04:09:08 +0000 (13:09 +0900)]
Fix largeNbDicts bench for clangbuild
Remove unsigned to size_t promotion to fix implicit down conversion errors in clangbuild target.
Azat Khuzhin [Sun, 16 Sep 2018 15:04:43 +0000 (18:04 +0300)]
seekable_decompression: support offset greater then UNIT_MAX
Azat Khuzhin [Sun, 16 Sep 2018 15:04:43 +0000 (18:04 +0300)]
zstdseek_decompress: fix decompression with data left in input buffer
Yann Collet [Sun, 16 Sep 2018 02:31:42 +0000 (19:31 -0700)]
Merge pull request #1319 from ko-zu/fixclangbuild
Fix clang build
ko-zu [Sun, 16 Sep 2018 01:27:02 +0000 (10:27 +0900)]
Fix clang build
Fix dixygen comment
Fix clang binary path