]>
git.ipfire.org Git - thirdparty/zstd.git/log
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`).
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
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
Nick Terrell [Mon, 2 Mar 2020 19:30:12 +0000 (11:30 -0800)]
[zstdgrep] Remove -f because zstdcat implies it
Nick Terrell [Mon, 2 Mar 2020 19:25:36 +0000 (11:25 -0800)]
[zstdgrep] Log zstd decompression errors to stderr
Nick Terrell [Mon, 2 Mar 2020 19:13:04 +0000 (11:13 -0800)]
Dont log errors when ZSTD_fseBitCost() returns an error
Bimba Shrestha [Thu, 27 Feb 2020 22:15:34 +0000 (14:15 -0800)]
Merge pull request #2019 from bimbashrestha/quick
--show-default-cparams Adding hashLog
Bimba Shrestha [Thu, 27 Feb 2020 21:56:56 +0000 (13:56 -0800)]
Adding hashLog to --show-default-cparams
Bimba Shrestha [Thu, 27 Feb 2020 21:53:03 +0000 (13:53 -0800)]
[cirrus-ci] Removing pkg -y update and using 11.3-snap instead of 11.2 (#2018)
* Replacing with boilerplate from cirrus
* Adding task name and adding back freebsd 11.x
* Changing from 11.3 to freebsd-11-3-snap
* Rearanging the order of matrix and instance
Yann Collet [Thu, 27 Feb 2020 20:36:39 +0000 (12:36 -0800)]
Merge pull request #2017 from facebook/verbose
man page : added `--verbose` long command
Yann Collet [Wed, 26 Feb 2020 22:29:30 +0000 (14:29 -0800)]
man page : added `--verbose` long command
also updated `zstd.1`
stacking prior updates completed on `zstd.1.md`.
Felix Handte [Wed, 26 Feb 2020 18:52:49 +0000 (10:52 -0800)]
Revert "Fix pkg-config File Generation Again" (#2016)
Felix Handte [Tue, 25 Feb 2020 18:22:29 +0000 (10:22 -0800)]
Merge pull request #2001 from felixhandte/pkg-config-fix-again
Fix pkg-config File Generation Again
Nick Terrell [Mon, 24 Feb 2020 21:53:45 +0000 (13:53 -0800)]
Merge pull request #2013 from terrelln/oss-fuzz
Update CIFuzz file and turn off dry-run mode
Nick Terrell [Mon, 24 Feb 2020 20:36:19 +0000 (12:36 -0800)]
Update CIFuzz file and turn off dry-run mode
Felix Handte [Fri, 21 Feb 2020 16:51:37 +0000 (08:51 -0800)]
Merge pull request #2007 from lgarrison/cli-allow-sizet
Allow some CLI options to accept numeric values up to size_t
Lehman Garrison [Thu, 20 Feb 2020 19:29:58 +0000 (14:29 -0500)]
Allow some cli options to accept numeric values up to size_t instead of unsigned int
Bimba Shrestha [Thu, 20 Feb 2020 18:55:28 +0000 (10:55 -0800)]
Merge pull request #1999 from bket/fix_have_lz4
Fix forgotten portable header prefix
Bimba Shrestha [Thu, 20 Feb 2020 18:54:04 +0000 (10:54 -0800)]
Merge pull request #2002 from bimbashrestha/docs
[doc] Adding notes about CI and an outline of collaboration workflow
Philip Jones [Tue, 18 Feb 2020 23:30:59 +0000 (15:30 -0800)]
Fix integer parsing in cli (#2003)