]>
git.ipfire.org Git - thirdparty/zstd.git/log
Bimba Shrestha [Tue, 5 May 2020 23:51:06 +0000 (16:51 -0700)]
adding tests back
Bimba Shrestha [Tue, 5 May 2020 17:03:57 +0000 (10:03 -0700)]
adding help text
Bimba Shrestha [Tue, 5 May 2020 16:51:44 +0000 (09:51 -0700)]
fixing inconsistencies
Nick Terrell [Tue, 28 Apr 2020 18:01:13 +0000 (11:01 -0700)]
Merge pull request #2048 from nocnokneo/ctest-support
Add CTest support
Bimba Shrestha [Thu, 23 Apr 2020 19:16:56 +0000 (14:16 -0500)]
Merge pull request #2088 from bimbashrestha/bug
[bug] Making compressStream2 fail when passing rawContent but claiming fullDict
Bimba Shrestha [Thu, 23 Apr 2020 18:02:57 +0000 (13:02 -0500)]
Merge pull request #2086 from bimbashrestha/quick3
[bug] passing cParams.hashLog instead of comprParams->hashLog for ldm trigger
Bimba Shrestha [Wed, 22 Apr 2020 05:29:35 +0000 (22:29 -0700)]
passing dictContentType instead of rawContent every time
Bimba Shrestha [Wed, 22 Apr 2020 05:26:48 +0000 (22:26 -0700)]
adding fail test when passing wrong fullDict using refPrefix
Bimba Shrestha [Wed, 22 Apr 2020 03:31:11 +0000 (20:31 -0700)]
bash to shell conversion
Bimba Shrestha [Wed, 22 Apr 2020 02:12:50 +0000 (21:12 -0500)]
changing to cParams.hashLog
Bimba Shrestha [Wed, 22 Apr 2020 02:04:55 +0000 (21:04 -0500)]
adding test for long mode trigger
Bimba Shrestha [Mon, 20 Apr 2020 19:09:23 +0000 (14:09 -0500)]
Merge pull request #2085 from bimbashrestha/quick2
[doc-bug] Updating the recommended max chainlog for patch-from
Bimba Shrestha [Mon, 20 Apr 2020 18:34:24 +0000 (11:34 -0700)]
updating chainlog bound
Bimba Shrestha [Mon, 20 Apr 2020 18:24:34 +0000 (13:24 -0500)]
Merge pull request #2083 from bimbashrestha/quick1
[nit] Adding missing newline at end of patch-from recommendations
Bimba Shrestha [Mon, 20 Apr 2020 17:25:58 +0000 (10:25 -0700)]
adding newline
Bimba Shrestha [Fri, 17 Apr 2020 20:58:53 +0000 (15:58 -0500)]
Adding --long support for --patch-from (#1959)
* adding long support for patch-from
* adding refPrefix to dictionary_decompress
* adding refPrefix to dictionary_loader
* conversion nit
* triggering log mode on chainLog < fileLog and removing old threshold
* adding refPrefix to dictionary_round_trip
* adding docs
* adding enableldm + forceWindow test for dict
* separate patch-from logic into FIO_adjustParamsForPatchFromMode
* moving memLimit adjustment to outside ifdefs (need for decomp)
* removing refPrefix gate on dictionary_round_trip
* rebase on top of dev refPrefix change
* making sure refPrefx + ldm is < 1% of srcSize
* combining notes for patch-from
* moving memlimit logic inside fileio.c
* adding display for optimal parser and long mode trigger
* conversion nit
* fuzzer found heap-overflow fix
* another conversion nit
* moving FIO_adjustMemLimitForPatchFromMode outside ifndef
* making params immutable
* moving memLimit update before createDictBuffer call
* making maxSrcSize unsigned long long
* making dictSize and maxSrcSize params unsigned long long
* error on files larger than 4gb
* extend refPrefix test to include round trip
* conversion to size_t
* making sure ldm is at least 10x better
* removing break
* including zstd_compress_internal and removing redundant macros
* exposing ZSTD_cycleLog()
* using cycleLog instead of chainLog
* add some more docs about user optimizations
* formatting
Yann Collet [Tue, 14 Apr 2020 03:47:34 +0000 (20:47 -0700)]
Merge pull request #2080 from facebook/minor_fileio_refactor
minor refactor of `fileio.c`
Yann Collet [Mon, 13 Apr 2020 17:13:29 +0000 (10:13 -0700)]
minor refactor
- fix a few comments
- reorder some parameters, to enforce "mutable references first"
- simplified fwriteSparse()
Nick Terrell [Wed, 8 Apr 2020 20:14:47 +0000 (13:14 -0700)]
Merge pull request #2040 from caoyzh/dev-2
Optimize by prefetching on aarch64
Bimba Shrestha [Tue, 7 Apr 2020 22:37:19 +0000 (17:37 -0500)]
Merge pull request #2075 from bimbashrestha/dict_fuzzer_ref
[bug] handling case where prefix is NULL or 0 sized in refPrefix_advanced
Bimba Shrestha [Tue, 7 Apr 2020 21:41:53 +0000 (14:41 -0700)]
handling nil case for refprefix
Yann Collet [Tue, 7 Apr 2020 17:17:05 +0000 (10:17 -0700)]
Merge pull request #2065 from cwoffenden/single-file-lib
Single-file decoder script can now (optionally) create an encoder
Carl Woffenden [Tue, 7 Apr 2020 16:17:59 +0000 (18:17 +0200)]
Fixed clash when projects are already using xxHash
Undefing XXH_* macros allows the `.c` to build standalone without clashes. Removing `xxhash.c` and only including the header is the correct usage (according to `XXH_PRIVATE_API`).
Carl Woffenden [Tue, 7 Apr 2020 11:35:19 +0000 (13:35 +0200)]
Fixed-up single-file libs directory
Carl Woffenden [Tue, 7 Apr 2020 11:34:19 +0000 (13:34 +0200)]
Renamed directory
Carl Woffenden [Tue, 7 Apr 2020 11:19:52 +0000 (13:19 +0200)]
Improved documentation
Carl Woffenden [Tue, 7 Apr 2020 09:25:16 +0000 (11:25 +0200)]
Further replication removed
`CHECK_F` is now in `error_private.h`. Minor tidy.
Carl Woffenden [Tue, 7 Apr 2020 09:13:02 +0000 (11:13 +0200)]
Merge remote-tracking branch 'upstream/dev' into single-file-lib
Carl Woffenden [Tue, 7 Apr 2020 09:02:06 +0000 (11:02 +0200)]
Code replicated in compression and decompression moved to shared headers
`CHECK_F` macro moved to `error_private.h` (shared between `fse_compress.c` and `fse_decompress.c`). `ZSTD_limitCopy()` moved to `zstd_internal.h` (shared between `zstd_compress.c` and `zstd_decompress.c`). Erroneous build artefact `zstd.h` removed from repo.
Bimba Shrestha [Tue, 7 Apr 2020 05:57:49 +0000 (22:57 -0700)]
adding refPrefix
Bimba Shrestha [Mon, 6 Apr 2020 21:06:37 +0000 (16:06 -0500)]
Merge pull request #2069 from bimbashrestha/doversize
[memory opt] Downsize decompression buffers when large for too long
Bimba Shrestha [Sat, 4 Apr 2020 15:49:24 +0000 (08:49 -0700)]
adding test for dctx size reduction
Bimba Shrestha [Sat, 4 Apr 2020 00:28:42 +0000 (19:28 -0500)]
Merge pull request #2068 from bimbashrestha/quick
[bug] Fixing Incorrect/inconsistent reported compression percentage for empty files
Bimba Shrestha [Fri, 3 Apr 2020 21:26:15 +0000 (14:26 -0700)]
moving consts to zstd_internal and reusing them
Bimba Shrestha [Fri, 3 Apr 2020 21:21:24 +0000 (14:21 -0700)]
converting to if
Bimba Shrestha [Fri, 3 Apr 2020 21:14:46 +0000 (14:14 -0700)]
adding dctx to function name
Bimba Shrestha [Fri, 3 Apr 2020 21:12:23 +0000 (14:12 -0700)]
only computing sizes once
Bimba Shrestha [Fri, 3 Apr 2020 21:09:21 +0000 (14:09 -0700)]
Using in and out size together
Bimba Shrestha [Fri, 3 Apr 2020 20:51:59 +0000 (15:51 -0500)]
Merge pull request #2067 from bimbashrestha/res-leak
[bug] adding fclose before return
Bimba Shrestha [Fri, 3 Apr 2020 20:39:02 +0000 (13:39 -0700)]
returning on null check
Bimba Shrestha [Fri, 3 Apr 2020 20:31:47 +0000 (13:31 -0700)]
adding fclose before return
Bimba Shrestha [Fri, 3 Apr 2020 20:20:22 +0000 (13:20 -0700)]
adding oversized check on decompression
Bimba Shrestha [Fri, 3 Apr 2020 19:40:31 +0000 (12:40 -0700)]
adding oversizeDuration to dctx and macros
Bimba Shrestha [Fri, 3 Apr 2020 19:10:02 +0000 (12:10 -0700)]
no percentage on readsize == 0
Bimba Shrestha [Fri, 3 Apr 2020 19:07:17 +0000 (12:07 -0700)]
removing max(1, ..)
Carl Woffenden [Fri, 3 Apr 2020 18:50:54 +0000 (20:50 +0200)]
Minor typo
Carl Woffenden [Fri, 3 Apr 2020 18:34:47 +0000 (20:34 +0200)]
Added missing -pthread flag (was breaking on BSD)
Carl Woffenden [Fri, 3 Apr 2020 17:07:46 +0000 (19:07 +0200)]
Single-file decoder script can now (optionally) create an encoder
To complement the single-file decoder a new script was added to create an amalgamated single-file of all of the Zstd source, along with examples and (simple) tests.
Carl Woffenden [Fri, 3 Apr 2020 09:55:29 +0000 (11:55 +0200)]
Fixes decompressor when using -Wshorten-64-to-32 (#2062)
Spotted on iOS when building with `-Wshorten-64-to-32` (since `__builtin_expect` returns a `long`).
Taylor Braun-Jones [Mon, 23 Mar 2020 20:08:52 +0000 (16:08 -0400)]
Add support for running more tests via CTest
Nick Terrell [Fri, 27 Mar 2020 18:00:01 +0000 (11:00 -0700)]
Merge pull request #2054 from terrelln/license-fix
Standardize and fix copyright and licenses
Nick Terrell [Fri, 27 Mar 2020 04:08:10 +0000 (21:08 -0700)]
Merge pull request #2053 from terrelln/fix-play-test
[test] Fix playTests.sh with space in binary path
Nick Terrell [Fri, 27 Mar 2020 00:04:52 +0000 (17:04 -0700)]
[circleci] Run test-license.py
Run it first because it is very fast (~1 second)
Nick Terrell [Thu, 26 Mar 2020 22:04:15 +0000 (15:04 -0700)]
[test] Fix playTests.sh with space in binary path
playTests.sh didn't work when `ZSTD_BIN` or `DATAGEN_BIN` had a space in
the path name. This happens for me because I split the cmake build
directory by compiler name, like "Clang 9.0.0".
The fix is to replace all instances of `$ZSTD` with the `zstd()`
function, and the replace `$DATAGEN` with `datagen()`. This will allow
us to change how we call zstd/datagen in the future without having to
change every callsite.
Nick Terrell [Thu, 26 Mar 2020 23:57:48 +0000 (16:57 -0700)]
[test] Add a test that checks for valid copyright and licenses
Tests all `.h`, `.c`, `.py`, and `Makefile` files for valid copyright
and license lines. Excludes a small number of exceptions (threading, and
divsufsort).
* Copyright does not contains `present`
* Copyright contains `Facebook, Inc`
* Copyright contains the current year
* License contains exactly the lines we expect
Nick Terrell [Thu, 26 Mar 2020 22:19:05 +0000 (15:19 -0700)]
Fix copyright and license lines
* All copyright lines now have -2020 instead of -present
* All copyright lines include "Facebook, Inc"
* All licenses are now standardized
The copyright in `threading.{h,c}` is not changed because it comes from
zstdmt.
The copyright and license of `divsufsort.{h,c}` is not changed.
Nick Terrell [Tue, 24 Mar 2020 18:42:59 +0000 (11:42 -0700)]
Merge pull request #2050 from terrelln/align
Align decompress sequences loop to 32+16 bytes
Nick Terrell [Thu, 19 Mar 2020 02:42:07 +0000 (19:42 -0700)]
Align decompress sequences loop to 32+16 bytes
The alignment is added before the loop, so this shouldn't hurt
performance in any case. The only way it hurts is if there is already
performance instability, and we force it to be stable but in the bad
case.
This consistently gets us into the good case with gcc-{7,8,9} on an
Intel i9-9900K and clang-9. gcc-5 is 5% worse than its best case but has
stable performance. We get consistently good behavior on my Macbook Pro
compiled with both clang and gcc-8. It ends up in the 50% from DSB and
50% from MITE case, but the performance is the same as the 85% DSB case,
so thats fine.
Nick Terrell [Tue, 24 Mar 2020 01:12:32 +0000 (18:12 -0700)]
Merge pull request #2029 from terrelln/minor-opt
[opt] Update repcodes less often
Taylor Braun-Jones [Mon, 23 Mar 2020 21:44:27 +0000 (17:44 -0400)]
Respect the conventional BUILD_TESTS CMake option on the first configure
Taylor Braun-Jones [Mon, 23 Mar 2020 21:46:56 +0000 (17:46 -0400)]
Add documentation for -T option
Taylor Braun-Jones [Thu, 30 Jan 2020 15:31:00 +0000 (10:31 -0500)]
Fix testing documentation typo
Bimba Shrestha [Mon, 23 Mar 2020 17:53:44 +0000 (12:53 -0500)]
Merge pull request #2036 from bimbashrestha/edist
[contrib] Edit distance match finder
Bimba Shrestha [Mon, 23 Mar 2020 13:27:54 +0000 (08:27 -0500)]
Merge pull request #2047 from bimbashrestha/doc
[doc] targetLen -> targetLength
Bimba Shrestha [Mon, 23 Mar 2020 13:25:08 +0000 (06:25 -0700)]
targetLen -> targetLength
caoyzh [Sat, 14 Mar 2020 07:25:09 +0000 (15:25 +0800)]
Optimize by prefetching on aarch64
Bimba Shrestha [Fri, 13 Mar 2020 14:39:33 +0000 (09:39 -0500)]
Edit distance match finder
Bimba Shrestha [Wed, 11 Mar 2020 01:42:19 +0000 (20:42 -0500)]
Merge pull request #2033 from bimbashrestha/icc
[opt] Small icc level 1 compression speed gain using #pragma vector
Bimba Shrestha [Tue, 10 Mar 2020 21:22:25 +0000 (16:22 -0500)]
Merge pull request #2031 from bimbashrestha/bitscan
_BitScan{Reverse,Forward} add check for undefined
Bimba Shrestha [Tue, 10 Mar 2020 20:19:48 +0000 (15:19 -0500)]
Typo
Bimba Shrestha [Tue, 10 Mar 2020 19:57:27 +0000 (14:57 -0500)]
Adding comment and remvoing ivdep
Bimba Shrestha [Mon, 9 Mar 2020 23:14:05 +0000 (18:14 -0500)]
Merge pull request #2032 from bimbashrestha/no-size
Adding --[no-]content-size to the cli
Bimba Shrestha [Mon, 9 Mar 2020 20:40:18 +0000 (15:40 -0500)]
Setting ZSTD_c_contentSizeFlag instead of UNKNOWN filesize
Bimba Shrestha [Mon, 9 Mar 2020 19:49:04 +0000 (14:49 -0500)]
Adding documentation
Bimba Shrestha [Mon, 9 Mar 2020 19:44:38 +0000 (14:44 -0500)]
Adding test for --[no-]content-size
Bimba Shrestha [Mon, 9 Mar 2020 19:19:05 +0000 (14:19 -0500)]
Adding --content-size
Bimba Shrestha [Mon, 9 Mar 2020 19:12:52 +0000 (14:12 -0500)]
Inverting content size prefs bool
Bimba Shrestha [Mon, 9 Mar 2020 19:00:52 +0000 (14:00 -0500)]
Adding (void)noContentSize
Bimba Shrestha [Mon, 9 Mar 2020 18:07:29 +0000 (13:07 -0500)]
--no-content-size cli
Bimba Shrestha [Thu, 5 Mar 2020 20:20:59 +0000 (12:20 -0800)]
Missed returns
Bimba Shrestha [Thu, 5 Mar 2020 19:52:15 +0000 (11:52 -0800)]
bitscan add undef check
Bimba Shrestha [Thu, 5 Mar 2020 18:41:06 +0000 (10:41 -0800)]
Merge pull request #2030 from bimbashrestha/quick
Removing no-tree-vectorize for intel
Bimba Shrestha [Thu, 5 Mar 2020 18:02:48 +0000 (10:02 -0800)]
Removing no-tree-vectorize for intel
Bimba Shrestha [Thu, 5 Mar 2020 17:55:38 +0000 (09:55 -0800)]
adding vector to main loop
Nick Terrell [Thu, 5 Mar 2020 01:57:15 +0000 (17:57 -0800)]
[opt] Only update repcodes upon arrival
Nick Terrell [Thu, 5 Mar 2020 01:40:59 +0000 (17:40 -0800)]
Merge pull request #2028 from terrelln/minor-opt
[opt] Don't recompute initial literals price
Nick Terrell [Thu, 5 Mar 2020 01:23:00 +0000 (17:23 -0800)]
[opt] Don't recompute repcodes while emitting sequences
Nick Terrell [Thu, 5 Mar 2020 00:35:26 +0000 (16:35 -0800)]
[opt] Delete ZSTD_litLengthContribution
Nick Terrell [Thu, 5 Mar 2020 00:29:19 +0000 (16:29 -0800)]
[opt] Explain why we don't include literals price
Nick Terrell [Thu, 5 Mar 2020 00:12:16 +0000 (16:12 -0800)]
[opt] Don't recompute initial literals price
Bimba Shrestha [Wed, 4 Mar 2020 01:01:47 +0000 (17:01 -0800)]
Merge pull request #2027 from bimbashrestha/travis-icc
[ci] Adding icc make check to travis
Bimba Shrestha [Tue, 3 Mar 2020 23:52:41 +0000 (15:52 -0800)]
Merge pull request #2026 from bimbashrestha/issues-temp
Add issue templates to zstd
Bimba Shrestha [Tue, 3 Mar 2020 23:46:11 +0000 (15:46 -0800)]
Removing mmx compiler flags
Bimba Shrestha [Tue, 3 Mar 2020 23:22:35 +0000 (15:22 -0800)]
Adding icc make check to travis ci
Bimba Shrestha [Tue, 3 Mar 2020 22:57:02 +0000 (14:57 -0800)]
Add issue templates to zstd
LZ4 just added this. I think it would be helpful here too.
Bimba Shrestha [Tue, 3 Mar 2020 21:43:29 +0000 (13:43 -0800)]
Merge pull request #2025 from bimbashrestha/doc
[doc] Fixing ZSTD_c_compressionLevel confusing note
Bimba Shrestha [Tue, 3 Mar 2020 21:12:02 +0000 (13:12 -0800)]
Fixing ZSTD_c_compressionLevel confusing note
Nick Terrell [Tue, 3 Mar 2020 01:49:08 +0000 (17:49 -0800)]
Merge pull request #2024 from terrelln/zstdgrep-error
[zstdgrep] Log zstd decompression errors to stderr
Nick Terrell [Mon, 2 Mar 2020 21:04:37 +0000 (13:04 -0800)]
[zstdgrep] Add a simple test
Nick Terrell [Mon, 2 Mar 2020 21:09:30 +0000 (13:09 -0800)]
Merge pull request #2023 from terrelln/fix-logs
Dont log errors when ZSTD_fseBitCost() returns an error