]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
7 years agoRefactoring 1258/head
Jennifer Liu [Tue, 31 Jul 2018 20:58:54 +0000 (13:58 -0700)] 
Refactoring

7 years agoUse CDict instead of CCtx in analyzeEntropy
Jennifer Liu [Tue, 31 Jul 2018 17:36:45 +0000 (10:36 -0700)] 
Use CDict instead of CCtx in analyzeEntropy

7 years agoIncrement frequency for every dmer occurence within same sample instead of at most... 1257/head
Jennifer Liu [Mon, 30 Jul 2018 19:54:22 +0000 (12:54 -0700)] 
Increment frequency for every dmer occurence within same sample instead of at most once per sample

7 years agoDelete old benchmarking result 1254/head
Jennifer Liu [Sat, 28 Jul 2018 00:31:33 +0000 (17:31 -0700)] 
Delete old benchmarking result

7 years agoUndo deleting clean in make
Jennifer Liu [Fri, 27 Jul 2018 23:56:50 +0000 (16:56 -0700)] 
Undo deleting clean in make

7 years agoRevert test.sh
Jennifer Liu [Fri, 27 Jul 2018 23:54:05 +0000 (16:54 -0700)] 
Revert test.sh

7 years agoSave segmentFreqs in ctx instead of malloc and memset in SelectSegment
Jennifer Liu [Fri, 27 Jul 2018 23:51:38 +0000 (16:51 -0700)] 
Save segmentFreqs in ctx instead of malloc and memset in SelectSegment

7 years agoUse same param after optimizing cover and fastCover and record k and d for benchmarking 1250/head
Jennifer Liu [Fri, 27 Jul 2018 20:39:19 +0000 (13:39 -0700)] 
Use same param after optimizing cover and fastCover and record k and d for benchmarking

7 years agoRerun cover and fastCover with optimized values
Jennifer Liu [Fri, 27 Jul 2018 02:03:01 +0000 (19:03 -0700)] 
Rerun cover and fastCover with optimized values

7 years agoBenchmark different f values
Jennifer Liu [Thu, 26 Jul 2018 23:24:13 +0000 (16:24 -0700)] 
Benchmark different f values

7 years agoAdd array to keep track of frequency within active segment, fix malloc bug, update...
Jennifer Liu [Thu, 26 Jul 2018 20:53:13 +0000 (13:53 -0700)] 
Add array to keep track of frequency within active segment, fix malloc bug, update benchmarking result

7 years agoAllow d=6
Jennifer Liu [Thu, 26 Jul 2018 01:10:09 +0000 (18:10 -0700)] 
Allow d=6

7 years agoBenchmark fast cover optimize vs k=200
Jennifer Liu [Thu, 26 Jul 2018 00:53:38 +0000 (17:53 -0700)] 
Benchmark fast cover optimize vs k=200

7 years agoInitial benchmarking result for fastCover
Jennifer Liu [Thu, 26 Jul 2018 00:05:54 +0000 (17:05 -0700)] 
Initial benchmarking result for fastCover

7 years agoMake hash value const
Jennifer Liu [Wed, 25 Jul 2018 23:54:08 +0000 (16:54 -0700)] 
Make hash value const

7 years agoAdd Fast Cover Dictionary Builder
Jennifer Liu [Wed, 25 Jul 2018 23:34:07 +0000 (16:34 -0700)] 
Add Fast Cover Dictionary Builder

7 years agoMerge pull request #1246 from jennifermliu/benchmark
Nick Terrell [Sat, 21 Jul 2018 01:09:31 +0000 (18:09 -0700)] 
Merge pull request #1246 from jennifermliu/benchmark

Benchmark dictionary builders

7 years agoMinor fix 1246/head
Jennifer Liu [Sat, 21 Jul 2018 00:41:22 +0000 (17:41 -0700)] 
Minor fix

7 years agoRefactoring and benchmark without dictionary
Jennifer Liu [Sat, 21 Jul 2018 00:03:47 +0000 (17:03 -0700)] 
Refactoring and benchmark without dictionary

7 years agoBenchmark dictionary builders
Jennifer Liu [Fri, 20 Jul 2018 18:32:39 +0000 (11:32 -0700)] 
Benchmark dictionary builders

7 years agoMerge pull request #1245 from terrelln/disable-arm
Nick Terrell [Thu, 19 Jul 2018 22:32:53 +0000 (15:32 -0700)] 
Merge pull request #1245 from terrelln/disable-arm

Revert "attempt to re-enable arm64 tests"

7 years agoRevert "attempt to re-enable arm64 tests" 1245/head
Nick Terrell [Thu, 19 Jul 2018 21:35:27 +0000 (14:35 -0700)] 
Revert "attempt to re-enable arm64 tests"

This reverts commit 9c277f137cbcaa385ff5b95ec4cbdce50675541d.

7 years agoMerge pull request #1238 from jennifermliu/random
Nick Terrell [Thu, 19 Jul 2018 20:52:15 +0000 (13:52 -0700)] 
Merge pull request #1238 from jennifermliu/random

Add random dictionary builder

7 years agoUpdate Makefile 1238/head
Jennifer Liu [Thu, 19 Jul 2018 20:44:27 +0000 (13:44 -0700)] 
Update Makefile

7 years agoRename cleanup
Jennifer Liu [Wed, 18 Jul 2018 19:15:49 +0000 (12:15 -0700)] 
Rename cleanup

7 years agoAdd cleanup to trainfromFiles and move RANDOM_segment_t declaration
Jennifer Liu [Wed, 18 Jul 2018 17:40:13 +0000 (10:40 -0700)] 
Add cleanup to trainfromFiles and move RANDOM_segment_t declaration

7 years agoMerge pull request #1230 from terrelln/train-out
Yann Collet [Wed, 18 Jul 2018 14:34:10 +0000 (16:34 +0200)] 
Merge pull request #1230 from terrelln/train-out

zstdcli: Allow -o before --train

7 years agoMerge pull request #1237 from terrelln/init-cstream-adv
Yann Collet [Wed, 18 Jul 2018 14:33:30 +0000 (16:33 +0200)] 
Merge pull request #1237 from terrelln/init-cstream-adv

Set requestedParams in ZSTD_initCStream*()

7 years agoMerge pull request #1242 from facebook/mingw_traces
Yann Collet [Wed, 18 Jul 2018 10:23:07 +0000 (12:23 +0200)] 
Merge pull request #1242 from facebook/mingw_traces

zstdmt debug traces compatibles with mingw

7 years agoMerge pull request #1244 from terrelln/ferror
Yann Collet [Wed, 18 Jul 2018 10:22:41 +0000 (12:22 +0200)] 
Merge pull request #1244 from terrelln/ferror

fileio: Error in compression on read errors

7 years agoUpdate freeSampleInfo
Jennifer Liu [Tue, 17 Jul 2018 23:13:40 +0000 (16:13 -0700)] 
Update freeSampleInfo

7 years agoFix deallocation problem and add documentation
Jennifer Liu [Tue, 17 Jul 2018 23:01:44 +0000 (16:01 -0700)] 
Fix deallocation problem and add documentation

7 years agofileio: Error in compression on read errors 1244/head
Nick Terrell [Tue, 17 Jul 2018 21:57:27 +0000 (14:57 -0700)] 
fileio: Error in compression on read errors

We can write a corrupted file if the input file errors during a read.
We should return a non-zero error code in this case.

7 years agoMake test PHONY target
Jennifer Liu [Tue, 17 Jul 2018 19:42:53 +0000 (12:42 -0700)] 
Make test PHONY target

7 years agoMove file loading functions to new file for access by benchmarking tool
Jennifer Liu [Tue, 17 Jul 2018 19:35:09 +0000 (12:35 -0700)] 
Move file loading functions to new file for access by benchmarking tool

7 years agozstdmt debug traces compatibles with mingw 1242/head
cyan4973 [Tue, 17 Jul 2018 12:39:44 +0000 (14:39 +0200)] 
zstdmt debug traces compatibles with mingw

since mingw does not have `sys/times.h`,
remove this path when detecting mingw compilation.

7 years agoRemove CLevel cli option which was accidentally added back in the last commit
Jennifer Liu [Tue, 17 Jul 2018 01:59:18 +0000 (18:59 -0700)] 
Remove CLevel cli option which was accidentally added back in the last commit

7 years agoFix spacing and Edit Makefile (now run with make instead of make run)
Jennifer Liu [Mon, 16 Jul 2018 23:31:59 +0000 (16:31 -0700)] 
Fix spacing and Edit Makefile (now run with make instead of make run)

7 years agoRefactor RANDOM
Jennifer Liu [Mon, 16 Jul 2018 23:03:04 +0000 (16:03 -0700)] 
Refactor RANDOM

7 years agozstdcli: Allow -o before --train 1230/head
Nick Terrell [Tue, 10 Jul 2018 01:24:07 +0000 (18:24 -0700)] 
zstdcli: Allow -o before --train

Only set the default value if `outFileName` is unset.

Fixes #1227.

7 years agoMerge pull request #1234 from codecat/add-premake
Yann Collet [Mon, 16 Jul 2018 10:26:58 +0000 (03:26 -0700)] 
Merge pull request #1234 from codecat/add-premake

Added premake4/GENie script to contrib folder

7 years agoMerge pull request #1233 from terrelln/doc-fiz
Yann Collet [Mon, 16 Jul 2018 10:14:12 +0000 (03:14 -0700)] 
Merge pull request #1233 from terrelln/doc-fiz

Small fixes to zstd specification

7 years agoFix wrong conditions 1234/head
Codecat [Sat, 14 Jul 2018 10:34:03 +0000 (12:34 +0200)] 
Fix wrong conditions

7 years agoUpdate zstd.lua
Codecat [Sat, 14 Jul 2018 10:27:42 +0000 (12:27 +0200)] 
Update zstd.lua

7 years agoUpdate README
Jennifer Liu [Sat, 14 Jul 2018 00:41:09 +0000 (17:41 -0700)] 
Update README

7 years agoRemove clevel and update documentation
Jennifer Liu [Sat, 14 Jul 2018 00:38:53 +0000 (17:38 -0700)] 
Remove clevel and update documentation

7 years agoAdd random dictionary builder
Jennifer Liu [Fri, 13 Jul 2018 23:05:14 +0000 (16:05 -0700)] 
Add random dictionary builder

7 years agoMerge pull request #1225 from jennifermliu/dev
Nick Terrell [Fri, 13 Jul 2018 20:26:15 +0000 (13:26 -0700)] 
Merge pull request #1225 from jennifermliu/dev

Split samples when building dictionary for COVER

7 years agoSet requestedParams in ZSTD_initCStream*() 1237/head
Nick Terrell [Fri, 13 Jul 2018 00:56:58 +0000 (17:56 -0700)] 
Set requestedParams in ZSTD_initCStream*()

The correct parameters are used once, but once `ZSTD_resetCStream()` is
called the default parameters (level 3) are used. Fix this by setting
`requestedParams` in the `ZSTD_initCStream*()` functions.

The added tests both fail before this patch and pass after.

7 years agoMerge pull request #1235 from ldv-alt/dev
Nick Terrell [Thu, 12 Jul 2018 23:56:54 +0000 (16:56 -0700)] 
Merge pull request #1235 from ldv-alt/dev

tests: use /dev/zero instead of /dev/random on all systems except GNU/Hurd

7 years agoAdd explanation for split=100 1225/head
Jennifer Liu [Wed, 11 Jul 2018 22:50:28 +0000 (15:50 -0700)] 
Add explanation for split=100

7 years agoAdded premake4/GENie script to contrib folder
Codecat [Wed, 11 Jul 2018 16:02:18 +0000 (18:02 +0200)] 
Added premake4/GENie script to contrib folder

7 years agotests: use /dev/zero instead of /dev/random on all systems except GNU/Hurd 1235/head
Dmitry V. Levin [Wed, 11 Jul 2018 12:41:50 +0000 (12:41 +0000)] 
tests: use /dev/zero instead of /dev/random on all systems except GNU/Hurd

https://github.com/facebook/zstd/pull/1124 broke the test suite
on Linux.  Looks like GNU/Hurd is the only operating system where
/dev/random is available for writing by unprivileged processes.

https://github.com/facebook/zstd/pull/1222 reverted the change
introduced by https://github.com/facebook/zstd/pull/1124 for OpenBSD
only, other operating systems need that change to be reverted, too.

Fixes: 2dde9d5abaad ("Write to /dev/random for test")
Complements: 276988f7948d ("OpenBSD is unable to write to /dev/zero")

7 years agoSmall fixes to zstd specification 1233/head
Nick Terrell [Tue, 10 Jul 2018 22:07:36 +0000 (15:07 -0700)] 
Small fixes to zstd specification

Update to keep in sync with the RFC.

7 years agoChange default splitPoint to 100
Jennifer Liu [Tue, 10 Jul 2018 18:19:33 +0000 (11:19 -0700)] 
Change default splitPoint to 100

7 years agoChange back to splitPoint<=0
Jennifer Liu [Mon, 9 Jul 2018 20:53:25 +0000 (13:53 -0700)] 
Change back to splitPoint<=0

7 years agoOnly make 0.0 default splitPoint
Jennifer Liu [Mon, 9 Jul 2018 19:26:53 +0000 (12:26 -0700)] 
Only make 0.0 default splitPoint

7 years agoMerge pull request #1226 from facebook/noPrefetch
Yann Collet [Sat, 7 Jul 2018 00:56:35 +0000 (17:56 -0700)] 
Merge pull request #1226 from facebook/noPrefetch

add build macro NO_PREFETCH

7 years agoadd build macro NO_PREFETCH 1226/head
Yann Collet [Sat, 7 Jul 2018 00:06:04 +0000 (17:06 -0700)] 
add build macro NO_PREFETCH

prevent usage of prefetch intrinsic commands
which are not supported by c2rust
(see https://github.com/immunant/c2rust/issues/13)

7 years agoChange cover_sum back to 2 parameters and fix splitPoint issues
Jennifer Liu [Fri, 6 Jul 2018 21:24:18 +0000 (14:24 -0700)] 
Change cover_sum back to 2 parameters and fix splitPoint issues

7 years agoFix testing parameter
Jennifer Liu [Fri, 6 Jul 2018 05:40:32 +0000 (22:40 -0700)] 
Fix testing parameter

7 years agoUpdate doc for split==100
Jennifer Liu [Thu, 5 Jul 2018 18:05:31 +0000 (11:05 -0700)] 
Update doc for split==100

7 years agoAllow splitPoint==1.0 (using all samples for both training and testing)
Jennifer Liu [Thu, 5 Jul 2018 17:38:45 +0000 (10:38 -0700)] 
Allow splitPoint==1.0 (using all samples for both training and testing)

7 years agoSome edits based on pull request comments
Jennifer Liu [Wed, 4 Jul 2018 00:53:27 +0000 (17:53 -0700)] 
Some edits based on pull request comments

7 years agoUpdate minimal training sample size
Jennifer Liu [Tue, 3 Jul 2018 19:07:06 +0000 (12:07 -0700)] 
Update minimal training sample size

7 years agoMerge pull request #1206 from GeorgeLu97/FullBenchParam
Yann Collet [Mon, 2 Jul 2018 20:33:53 +0000 (13:33 -0700)] 
Merge pull request #1206 from GeorgeLu97/FullBenchParam

Fullbench Param

7 years agoMerge pull request #1188 from GeorgeLu97/BenchModule
Yann Collet [Mon, 2 Jul 2018 20:33:27 +0000 (13:33 -0700)] 
Merge pull request #1188 from GeorgeLu97/BenchModule

Bench module

7 years agoUpdate COVER dictionary builder tests
Jennifer Liu [Mon, 2 Jul 2018 18:37:04 +0000 (11:37 -0700)] 
Update COVER dictionary builder tests

7 years agoMerge pull request #1223 from jon-turney/dev
Yann Collet [Mon, 2 Jul 2018 16:14:37 +0000 (09:14 -0700)] 
Merge pull request #1223 from jon-turney/dev

meson: fix build

7 years agomeson: fix build 1223/head
Jon Turney [Sun, 1 Jul 2018 21:41:08 +0000 (22:41 +0100)] 
meson: fix build

7 years agoUpdate documentation
Jennifer Liu [Mon, 2 Jul 2018 02:59:37 +0000 (19:59 -0700)] 
Update documentation

7 years agoMerge pull request #1222 from bket/openbsd
Yann Collet [Sat, 30 Jun 2018 18:47:41 +0000 (11:47 -0700)] 
Merge pull request #1222 from bket/openbsd

2 separate issues found when running zstd's tests on OpenBSD

7 years agoxz/lzma warning causes test to fail 1222/head
Björn Ketelaars [Sat, 30 Jun 2018 11:22:14 +0000 (13:22 +0200)] 
xz/lzma warning causes test to fail

OpenBSD's port building infrastructure is able to build in a privilege
separated mode. It uses a privilege drop model. Regression tests fail in
this mode as xz/lzma is unable to set file group and errors out with:

xz: tmp.xz: Cannot set the file group: Operation not permitted
gmake[1]: *** [Makefile:307: zstd-playTests] Error 2

Actually it is not a xz/lzma error but a warning causing zstd's
regression test to fail. Proposed fix is to have xz/lzma not set the
exit status to 2 even if a condition worth a warning was detected (-Q
flag).

7 years agoOpenBSD is unable to write to /dev/zero
Björn Ketelaars [Sat, 30 Jun 2018 11:01:58 +0000 (13:01 +0200)] 
OpenBSD is unable to write to /dev/zero

https://github.com/facebook/zstd/pull/1124 fixes an issue with GNU/Hurd
being unable to write to /dev/zero. Implemented fix is writing to
/dev/random instead.

On OpenBSD a regular user is unable to write to /dev/random because of
permissions set on this device. Result is failing a regression test.

Proposed solution should work for all platforms.

7 years agoFix another declaration issue
Jennifer Liu [Sat, 30 Jun 2018 01:02:02 +0000 (18:02 -0700)] 
Fix another declaration issue

7 years agoAdd split=# to cli
Jennifer Liu [Sat, 30 Jun 2018 00:54:41 +0000 (17:54 -0700)] 
Add split=# to cli

7 years agomake build tests more unforgiving
Yann Collet [Sat, 30 Jun 2018 00:10:56 +0000 (17:10 -0700)] 
make build tests more unforgiving

`-Werror` will ensure they fail if there is the slightest warning.

fix a minor warning specific to `zstd_decompress` variant.

7 years agofix `test-zstd` can be run with parallel compilation
Yann Collet [Fri, 29 Jun 2018 23:52:21 +0000 (16:52 -0700)] 
fix `test-zstd` can be run with parallel compilation

fix #1221

7 years agoExplicitly cast double to unsigned
Jennifer Liu [Fri, 29 Jun 2018 23:17:20 +0000 (16:17 -0700)] 
Explicitly cast double to unsigned

7 years agoFix variable declaration problem
Jennifer Liu [Fri, 29 Jun 2018 22:46:56 +0000 (15:46 -0700)] 
Fix variable declaration problem

7 years agoAnother fix to comparator
Jennifer Liu [Fri, 29 Jun 2018 22:38:08 +0000 (15:38 -0700)] 
Another fix to comparator

7 years agoMerge pull request #1220 from felixhandte/list-stdin-check
Yann Collet [Fri, 29 Jun 2018 21:08:45 +0000 (14:08 -0700)] 
Merge pull request #1220 from felixhandte/list-stdin-check

Allow Invoking `zstd --list` When `stdin` is not a `tty`

7 years agoMake One Travis CI Run Run Tests With Non-TTY `stdin` 1220/head
W. Felix Handte [Fri, 29 Jun 2018 20:31:59 +0000 (16:31 -0400)] 
Make One Travis CI Run Run Tests With Non-TTY `stdin`

7 years agoFix Tests of `--list` Behavior with `stdin`
W. Felix Handte [Fri, 29 Jun 2018 20:31:22 +0000 (16:31 -0400)] 
Fix Tests of `--list` Behavior with `stdin`

7 years agoFix splitPoint floating point comparison problem
Jennifer Liu [Fri, 29 Jun 2018 19:47:03 +0000 (12:47 -0700)] 
Fix splitPoint floating point comparison problem

7 years agoAllow Invoking `zstd --list` When `stdin` is not a `tty`
W. Felix Handte [Fri, 29 Jun 2018 19:33:44 +0000 (15:33 -0400)] 
Allow Invoking `zstd --list` When `stdin` is not a `tty`

Also now returns an error when no inputs are given.

New proposed behavior:

```
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l; echo $?
No files given
1
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l Makefile.zst; echo $?
Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
     1      0     3.08 KB      10.92 KB  3.544  XXH64  Makefile.zst
0
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l <Makefile.zst; echo $?
zstd: --list does not support reading from standard input
No files given
1
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l Makefile.zst <Makefile.zst; echo $?
Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
     1      0     3.08 KB      10.92 KB  3.544  XXH64  Makefile.zst
0
felix@odin:~/prog/zstd (list-stdin-check)$
```

7 years agoSplit samples into train and test sets
Jennifer Liu [Fri, 29 Jun 2018 19:33:34 +0000 (12:33 -0700)] 
Split samples into train and test sets

7 years agoMerge pull request #1214 from jennifermliu/dev 1217/head
Yann Collet [Thu, 28 Jun 2018 01:53:39 +0000 (18:53 -0700)] 
Merge pull request #1214 from jennifermliu/dev

Make --fast=0 fail

7 years agoMerge pull request #1218 from facebook/man
Yann Collet [Thu, 28 Jun 2018 01:53:12 +0000 (18:53 -0700)] 
Merge pull request #1218 from facebook/man

minor man page update

7 years agominor man page update 1218/head
Yann Collet [Thu, 28 Jun 2018 01:42:11 +0000 (18:42 -0700)] 
minor man page update

regarding advanced parameter `tlen`
which was recently changed.
`0` in association with `ZSTD_fast` now means "normal fast mode".

7 years agoMerge pull request #1216 from felixhandte/pool-test-time-t-fix
Yann Collet [Wed, 27 Jun 2018 23:45:38 +0000 (16:45 -0700)] 
Merge pull request #1216 from felixhandte/pool-test-time-t-fix

poolTests.c: Fix Interval Var Type

7 years agoRedirect failed test result to INTOVOID and update comment about parsing fast command 1214/head
Jennifer Liu [Wed, 27 Jun 2018 23:27:45 +0000 (16:27 -0700)] 
Redirect failed test result to INTOVOID and update comment about parsing fast command

7 years agoConsolidate Fast-Running Travis Jobs 1216/head
W. Felix Handte [Wed, 27 Jun 2018 23:25:39 +0000 (19:25 -0400)] 
Consolidate Fast-Running Travis Jobs

7 years agoAlso Run test-pool Target in Travis
W. Felix Handte [Wed, 27 Jun 2018 23:21:42 +0000 (19:21 -0400)] 
Also Run test-pool Target in Travis

7 years agopoolTests.c: Fix Interval Var Type
W. Felix Handte [Wed, 27 Jun 2018 23:15:38 +0000 (19:15 -0400)] 
poolTests.c: Fix Interval Var Type

7 years agoremoved unused imaged 1215/head
Yann Collet [Wed, 27 Jun 2018 23:03:46 +0000 (16:03 -0700)] 
removed unused imaged

7 years agoadded graph for cdict speed v1.3.5 improvements
Yann Collet [Wed, 27 Jun 2018 22:58:34 +0000 (15:58 -0700)] 
added graph for cdict speed v1.3.5 improvements

7 years agoMake fast=0 fail
Jennifer Liu [Wed, 27 Jun 2018 21:27:27 +0000 (14:27 -0700)] 
Make fast=0 fail

7 years agoMerge pull request #1213 from facebook/arm64
Yann Collet [Wed, 27 Jun 2018 21:13:16 +0000 (14:13 -0700)] 
Merge pull request #1213 from facebook/arm64

re-enable arm64 tests

7 years agoattempt to re-enable arm64 tests 1213/head
Yann Collet [Wed, 27 Jun 2018 20:19:14 +0000 (13:19 -0700)] 
attempt to re-enable arm64 tests