]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
7 years agoUse debug.h in fileio.c 1190/head
Nick Terrell [Fri, 15 Jun 2018 14:36:54 +0000 (07:36 -0700)] 
Use debug.h in fileio.c

7 years agoAdjust advanced parameters to source size
Nick Terrell [Thu, 14 Jun 2018 23:24:18 +0000 (16:24 -0700)] 
Adjust advanced parameters to source size

In the new advanced API, adjust the parameters even if they are explicitly
set. This mainly applies to the `windowLog`, and accordingly the `hashLog`
and `chainLog`, when the source size is known.

7 years agoMerge pull request #1187 from facebook/fix1186
Yann Collet [Thu, 14 Jun 2018 20:22:22 +0000 (16:22 -0400)] 
Merge pull request #1187 from facebook/fix1186

fix dctx initialization within ZSTD_decompress in stack mode

7 years agoMerge pull request #1184 from facebook/debug
Yann Collet [Thu, 14 Jun 2018 20:21:53 +0000 (16:21 -0400)] 
Merge pull request #1184 from facebook/debug

Grouped debug functions into debug.h

7 years agoAdd CXXFLAGS to ALL_LDFLAGS (#1178)
Ryan Schmidt [Thu, 14 Jun 2018 20:05:33 +0000 (15:05 -0500)] 
Add CXXFLAGS to ALL_LDFLAGS (#1178)

pzstd requires C++11, which older C++ standard libraries like libstdc++
as used on OS X 10.8 and earlier don't support. The user might address
this by setting "CXXFLAGS=-stdlib=libc++". This flag must be used both
at compile time and at link time. Asking the user to also put the flag
in LDFLAGS is undesirable because then the flag would also be used when
linking C code, which would be inappropriate.

7 years agofix dctx initialization within ZSTD_decompress in stack mode 1187/head
Yann Collet [Thu, 14 Jun 2018 14:22:24 +0000 (10:22 -0400)] 
fix dctx initialization within ZSTD_decompress in stack mode

when ZSTD_HEAPMODE=0 (which is not default).

Also : added an associated test (test-fuzzer-stackmode)
run on travis CI

fix #1186

7 years agofixed g_debuglevel variable name 1184/head
Yann Collet [Thu, 14 Jun 2018 00:02:33 +0000 (20:02 -0400)] 
fixed g_debuglevel variable name

in debug.h

7 years agoMerge pull request #1169 from felixhandte/zstd-lazy-in-place-dict
Yann Collet [Wed, 13 Jun 2018 20:05:41 +0000 (16:05 -0400)] 
Merge pull request #1169 from felixhandte/zstd-lazy-in-place-dict

ZSTD_lazy: Support Searching the Dictionary Context In-Place

7 years agogrouped debug functions into debug.h
Yann Collet [Wed, 13 Jun 2018 18:59:26 +0000 (14:59 -0400)] 
grouped debug functions into debug.h

There were 2 competing set of debug functions
within zstd_internal.h and bitstream.h.
They were mostly duplicate, and required care to avoid messing with each other.

There is now a single implementation, shared by both.

Significant change :
The macro variable ZSTD_DEBUG does no longer exist,
it has been replaced by DEBUGLEVEL,
which required modifying several source files.

7 years agoFix Cast Warning 1169/head
W. Felix Handte [Sat, 9 Jun 2018 21:19:04 +0000 (17:19 -0400)] 
Fix Cast Warning

7 years agoExtend Dictionary Matches Backwards
W. Felix Handte [Fri, 8 Jun 2018 19:06:47 +0000 (15:06 -0400)] 
Extend Dictionary Matches Backwards

7 years agoUpdate Dictionary Attachment Cutoff Values Again
W. Felix Handte [Thu, 7 Jun 2018 20:57:45 +0000 (16:57 -0400)] 
Update Dictionary Attachment Cutoff Values Again

7 years agoDo Not Inline DMS Search Function
W. Felix Handte [Thu, 7 Jun 2018 20:55:13 +0000 (16:55 -0400)] 
Do Not Inline DMS Search Function

7 years agoAlso Implement Depth Repcode Checks
W. Felix Handte [Wed, 6 Jun 2018 23:54:13 +0000 (19:54 -0400)] 
Also Implement Depth Repcode Checks

7 years agoApply Match Continuation Bug Fix
W. Felix Handte [Wed, 6 Jun 2018 21:34:29 +0000 (17:34 -0400)] 
Apply Match Continuation Bug Fix

7 years agoUpdate Dictionary Attachment Cutoff Values
W. Felix Handte [Thu, 31 May 2018 22:32:41 +0000 (18:32 -0400)] 
Update Dictionary Attachment Cutoff Values

7 years agoCheck Dict Match State in ZSTD_HcFindBestMatch_generic
W. Felix Handte [Tue, 29 May 2018 20:26:23 +0000 (16:26 -0400)] 
Check Dict Match State in ZSTD_HcFindBestMatch_generic

7 years agoFocus on Non-BT Impls for the Moment
W. Felix Handte [Tue, 29 May 2018 20:06:23 +0000 (16:06 -0400)] 
Focus on Non-BT Impls for the Moment

7 years agoRemove Pre-Existing Repcode Check
W. Felix Handte [Tue, 29 May 2018 20:05:48 +0000 (16:05 -0400)] 
Remove Pre-Existing Repcode Check

7 years agoSecond Repcode Check
W. Felix Handte [Wed, 23 May 2018 19:49:43 +0000 (15:49 -0400)] 
Second Repcode Check

7 years agoFirst Repcode Check
W. Felix Handte [Wed, 23 May 2018 19:06:24 +0000 (15:06 -0400)] 
First Repcode Check

7 years agoDisallow Too-Long Repcodes When Using an Attached Dict
W. Felix Handte [Wed, 23 May 2018 18:13:16 +0000 (14:13 -0400)] 
Disallow Too-Long Repcodes When Using an Attached Dict

7 years agoRename `base` -> `prefixLowest`
W. Felix Handte [Wed, 23 May 2018 19:10:18 +0000 (15:10 -0400)] 
Rename `base` -> `prefixLowest`

7 years agoGo Back to Separate Intermediate Functions for Different Dict Modes
W. Felix Handte [Fri, 1 Jun 2018 18:23:14 +0000 (14:23 -0400)] 
Go Back to Separate Intermediate Functions for Different Dict Modes

7 years agoFurther Templatize Intermediate Functions on dictMode
W. Felix Handte [Wed, 16 May 2018 08:32:21 +0000 (04:32 -0400)] 
Further Templatize Intermediate Functions on dictMode

7 years agoConvert Existing U32 extDict Vars to ZSTD_dictMode Enums
W. Felix Handte [Wed, 16 May 2018 08:07:09 +0000 (04:07 -0400)] 
Convert Existing U32 extDict Vars to ZSTD_dictMode Enums

7 years agoAttach Dict When Using ZSTD_lazy Strategies
W. Felix Handte [Wed, 16 May 2018 06:31:30 +0000 (02:31 -0400)] 
Attach Dict When Using ZSTD_lazy Strategies

7 years agoAdd _dictMatchState Stubs for ZSTD_lazy Functions
W. Felix Handte [Wed, 16 May 2018 06:30:20 +0000 (02:30 -0400)] 
Add _dictMatchState Stubs for ZSTD_lazy Functions

7 years agoAdd dictMode Param to ZSTD_compressBlock_lazy_generic
W. Felix Handte [Wed, 16 May 2018 06:26:07 +0000 (02:26 -0400)] 
Add dictMode Param to ZSTD_compressBlock_lazy_generic

7 years agoMerge pull request #1168 from GeorgeLu97/paramgrillfeatures
Yann Collet [Wed, 13 Jun 2018 15:38:29 +0000 (11:38 -0400)] 
Merge pull request #1168 from GeorgeLu97/paramgrillfeatures

Have paramgrill share bench.c benchmarking function

7 years agoMerge pull request #1175 from ryandesign/macos
Yann Collet [Wed, 13 Jun 2018 15:32:06 +0000 (11:32 -0400)] 
Merge pull request #1175 from ryandesign/macos

Fix name of macOS

7 years agoRequested changes 1168/head
George Lu [Mon, 11 Jun 2018 14:59:05 +0000 (10:59 -0400)] 
Requested changes

-Remove g_displaylevel/setNotificationLevel function
-Add extern "C"
-Remove averaging
-Reorder arguments

More fixes

-Added BMK_return_t (result + possible error)
-Correct comment'
-Nullcheck ctx, dctx when allocated
-Remove extra assert

7 years agoMerge pull request #1174 from duc0/document_default_level
Yann Collet [Tue, 12 Jun 2018 19:09:01 +0000 (12:09 -0700)] 
Merge pull request #1174 from duc0/document_default_level

Expose ZSTD_CLEVEL_DEFAULT and update documentation

7 years agoLine break 1174/head
Duc Ngo [Mon, 11 Jun 2018 17:02:15 +0000 (10:02 -0700)] 
Line break

7 years agoAddress comments
Duc Ngo [Mon, 11 Jun 2018 17:01:35 +0000 (10:01 -0700)] 
Address comments

7 years agoMerge pull request #1177 from ryandesign/gen_html-CXXFLAGS
Yann Collet [Mon, 11 Jun 2018 00:34:19 +0000 (17:34 -0700)] 
Merge pull request #1177 from ryandesign/gen_html-CXXFLAGS

Remove duplicate CXXFLAGS

7 years agoRemove duplicate CXXFLAGS 1177/head
Ryan Schmidt [Sun, 10 Jun 2018 23:04:21 +0000 (18:04 -0500)] 
Remove duplicate CXXFLAGS

7 years agoFix name of macOS 1175/head
Ryan Schmidt [Sat, 9 Jun 2018 19:31:17 +0000 (14:31 -0500)] 
Fix name of macOS

7 years agoMerge pull request #1171 from facebook/negLevels
Yann Collet [Fri, 8 Jun 2018 19:30:42 +0000 (12:30 -0700)] 
Merge pull request #1171 from facebook/negLevels

Negative compression levels

7 years agoMake paramgrill use bench.c benchmarking
George Lu [Mon, 4 Jun 2018 23:32:37 +0000 (16:32 -0700)] 
Make paramgrill use bench.c benchmarking

7 years agoExpose ZSTD_CLEVEL_DEFAULT and update documentation
Duc Ngo [Fri, 8 Jun 2018 18:29:51 +0000 (11:29 -0700)] 
Expose ZSTD_CLEVEL_DEFAULT and update documentation

7 years agofixed minor conversion warning 1171/head
Yann Collet [Thu, 7 Jun 2018 23:59:33 +0000 (16:59 -0700)] 
fixed minor conversion warning

7 years agofixed regressiontest
Yann Collet [Thu, 7 Jun 2018 23:07:46 +0000 (16:07 -0700)] 
fixed regressiontest

ZSTD_TARGETLEN_MIN no longer exists
since is would be tautological to check if an unsigned value is < 0.

7 years agoMerge branch 'dev' into negLevels
Yann Collet [Thu, 7 Jun 2018 22:51:35 +0000 (15:51 -0700)] 
Merge branch 'dev' into negLevels

7 years agosupport targetlen==0 with strategy==ZSTD_fast
Yann Collet [Thu, 7 Jun 2018 22:49:01 +0000 (15:49 -0700)] 
support targetlen==0 with strategy==ZSTD_fast

to mean "normal compression",
targetlen >= 1 now means "disable huffman compression of literals"

7 years agoremoved literalCompression directive
Yann Collet [Thu, 7 Jun 2018 22:24:12 +0000 (15:24 -0700)] 
removed literalCompression directive

in this version, literal compression is always disabled for ZSTD_fast strategy.

Performance parity between ZSTD_compress_advanced() and ZSTD_compress_generic()

7 years agofuzzer: make negative compression level fail
Yann Collet [Thu, 7 Jun 2018 22:12:13 +0000 (15:12 -0700)] 
fuzzer: make negative compression level fail

result of ZSTD_compress_advanced()
is different from ZSTD_compress_generic()
when using negative compression levels
because the disabling of huffman compression is not passed in parameters.

7 years agoMerge branch 'zstd_compress' into negLevels
Yann Collet [Thu, 7 Jun 2018 21:47:29 +0000 (14:47 -0700)] 
Merge branch 'zstd_compress' into negLevels

7 years agonegative compression level test
Yann Collet [Thu, 7 Jun 2018 21:46:55 +0000 (14:46 -0700)] 
negative compression level test

compare results from simple and advanced AIP

7 years agoMerge pull request #1165 from facebook/ctxSizeDown
Yann Collet [Thu, 7 Jun 2018 21:44:32 +0000 (14:44 -0700)] 
Merge pull request #1165 from facebook/ctxSizeDown

Dynamic context downsize

7 years agoclean ZSTD_compress() initialization 1170/head
Yann Collet [Thu, 7 Jun 2018 20:53:30 +0000 (13:53 -0700)] 
clean ZSTD_compress() initialization

The (pretty old) code inside ZSTD_compress()
was making some pretty bold assumptions
on what's inside a CCtx and how to init it.

This is pretty fragile by design.
CCtx content evolve.
Knowledge of how to handle that should be concentrate in one place.

A side effect of this strategy
is that ZSTD_compress() wouldn't check for BMI2 capability,
and is therefore missing out some potential speed opportunity.

This patch makes ZSTD_compress() use
the same initialization and release functions
as the normal creator / destructor ones.

Measured on my laptop, with a custom version of bench
manually modified to use ZSTD_compress() (instead of the advanced API) :
This patch :
 1#silesia.tar       : 211984896 ->  73651053 (2.878), 312.2 MB/s , 723.8 MB/s
 2#silesia.tar       : 211984896 ->  70163650 (3.021), 226.2 MB/s , 649.8 MB/s
 3#silesia.tar       : 211984896 ->  66996749 (3.164), 169.4 MB/s , 636.7 MB/s
 4#silesia.tar       : 211984896 ->  65998319 (3.212), 136.7 MB/s , 619.2 MB/s
dev branch :
 1#silesia.tar       : 211984896 ->  73651053 (2.878), 291.7 MB/s , 727.5 MB/s
 2#silesia.tar       : 211984896 ->  70163650 (3.021), 216.2 MB/s , 655.7 MB/s
 3#silesia.tar       : 211984896 ->  66996749 (3.164), 162.2 MB/s , 633.1 MB/s
 4#silesia.tar       : 211984896 ->  65998319 (3.212), 130.6 MB/s , 618.6 MB/s

7 years agodisable aarch64 test on travis CI 1165/head
Yann Collet [Thu, 7 Jun 2018 19:18:47 +0000 (12:18 -0700)] 
disable aarch64 test on travis CI

there's a bug on travis' ld
> collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped

I cannot reproduce it.
Note that travis' ld version is 2.24
while the one in my Linux VM is 2.26.1.
ld is part of binutils, so it's pretty hard to change.

I would expect the bug to no longer be triggered after some random code change.
To be re-enabled later.

7 years agoadded ld -v to aarch64fuzz
Yann Collet [Thu, 7 Jun 2018 01:15:57 +0000 (18:15 -0700)] 
added ld -v to aarch64fuzz

to better understand the travis CI linking bug

7 years agoMerge pull request #1164 from GeorgeLu97/CustomMacros
Yann Collet [Wed, 6 Jun 2018 23:47:42 +0000 (16:47 -0700)] 
Merge pull request #1164 from GeorgeLu97/CustomMacros

Partial Compilation Macros

7 years agobumped version number to v1.3.5
Yann Collet [Wed, 6 Jun 2018 22:51:55 +0000 (15:51 -0700)] 
bumped version number to v1.3.5

7 years agoRename tests 1164/head
George Lu [Wed, 6 Jun 2018 22:16:37 +0000 (15:16 -0700)] 
Rename tests

7 years agocontext can be sized down even with constant parameters
Yann Collet [Wed, 6 Jun 2018 22:04:12 +0000 (15:04 -0700)] 
context can be sized down even with constant parameters

when parameters are "equivalent",
the context is re-used in continue mode,
hence needed workspace size is not recalculated.
This incidentally also evades the size-down check and action.

This patch intercepts the "continue mode"
so that the size-down check and action is actually triggered.

7 years agochanged member name to workSpaceOversizedDuration
Yann Collet [Wed, 6 Jun 2018 22:00:27 +0000 (15:00 -0700)] 
changed member name to workSpaceOversizedDuration

7 years agoMerge pull request #1167 from facebook/seekable_gcc5
Yann Collet [Wed, 6 Jun 2018 21:41:21 +0000 (14:41 -0700)] 
Merge pull request #1167 from facebook/seekable_gcc5

contrib/seekable_format on gcc5+

7 years agofixed seekable_format type mismatch 1167/head
Yann Collet [Wed, 6 Jun 2018 20:10:29 +0000 (13:10 -0700)] 
fixed seekable_format type mismatch

and some minor "unused variable" warnings.
Also : zstd_seekable.h is actually depending on zstd.h for ZSTDLIB_API

7 years agobetter make -j all behavior
Yann Collet [Wed, 6 Jun 2018 19:47:16 +0000 (12:47 -0700)] 
better make -j all behavior

avoid concurrent compilation of libzstd

7 years agorefactor travis CI test
Yann Collet [Wed, 6 Jun 2018 19:20:19 +0000 (12:20 -0700)] 
refactor travis CI test

to add a `make all` target with gcc-6.
Note : should fail at this stage, due to contrib/seekable_format

7 years agoensure seekable_format/examples generated libzstd.a
Yann Collet [Wed, 6 Jun 2018 19:09:58 +0000 (12:09 -0700)] 
ensure seekable_format/examples generated libzstd.a

when it's not already present in the expected directory

7 years agoMore Tests
George Lu [Wed, 6 Jun 2018 18:33:39 +0000 (11:33 -0700)] 
More Tests

7 years agoRemove test from Circle
George Lu [Tue, 5 Jun 2018 22:21:31 +0000 (15:21 -0700)] 
Remove test from Circle

7 years agoMove stuff around
George Lu [Tue, 5 Jun 2018 22:20:34 +0000 (15:20 -0700)] 
Move stuff around

test execution -> travis
logic -> partialTests.sh

7 years agoadded test case
Yann Collet [Tue, 5 Jun 2018 21:53:28 +0000 (14:53 -0700)] 
added test case

7 years agoRemove optimizations
George Lu [Tue, 5 Jun 2018 21:41:41 +0000 (14:41 -0700)] 
Remove optimizations

7 years agocircle test
George Lu [Tue, 5 Jun 2018 21:10:29 +0000 (14:10 -0700)] 
circle test

7 years agoRevert "Partial compilation test?"
George Lu [Tue, 5 Jun 2018 20:55:36 +0000 (13:55 -0700)] 
Revert "Partial compilation test?"

This reverts commit b2496ab60663992eb566dd221705da86fc9dafc7.

7 years agoPartial compilation test?
George Lu [Tue, 5 Jun 2018 20:24:00 +0000 (13:24 -0700)] 
Partial compilation test?

7 years agoadded workSpaceTooLarge and workSpaceWasteful
Yann Collet [Tue, 5 Jun 2018 18:23:18 +0000 (11:23 -0700)] 
added workSpaceTooLarge and workSpaceWasteful

also :
slightly increased speed of test fuzzer.16

7 years agoMerge pull request #1162 from facebook/corruptionFix
Yann Collet [Tue, 5 Jun 2018 13:50:29 +0000 (06:50 -0700)] 
Merge pull request #1162 from facebook/corruptionFix

Fixed a corruption bug

7 years agoFix Typos
George Lu [Tue, 5 Jun 2018 00:19:06 +0000 (17:19 -0700)] 
Fix Typos

7 years agochanged a few variable names 1162/head
Yann Collet [Tue, 5 Jun 2018 00:10:50 +0000 (17:10 -0700)] 
changed a few variable names

to unify naming convention

7 years agoMerge pull request #1161 from GeorgeLu97/paramgrillformat
Yann Collet [Mon, 4 Jun 2018 21:56:23 +0000 (14:56 -0700)] 
Merge pull request #1161 from GeorgeLu97/paramgrillformat

Added zstdcli-style format for compression parameters in paramgrill

7 years agoAdded Deprecated Dependencies
George Lu [Mon, 4 Jun 2018 21:33:21 +0000 (14:33 -0700)] 
Added Deprecated Dependencies

7 years agoforgot \n, ; 1161/head
George Lu [Mon, 4 Jun 2018 20:38:37 +0000 (13:38 -0700)] 
forgot \n, ;

7 years agoRemove old file declaration
George Lu [Mon, 4 Jun 2018 20:32:41 +0000 (13:32 -0700)] 
Remove old file declaration

7 years agoUpdate usage_advanced
George Lu [Mon, 4 Jun 2018 17:16:05 +0000 (10:16 -0700)] 
Update usage_advanced

7 years agoDocumentation
George Lu [Mon, 4 Jun 2018 16:56:37 +0000 (09:56 -0700)] 
Documentation

7 years agoCreated Macros
George Lu [Mon, 4 Jun 2018 16:56:29 +0000 (09:56 -0700)] 
Created Macros

7 years agoFixed a nasty corruption bug
Yann Collet [Fri, 1 Jun 2018 22:18:32 +0000 (15:18 -0700)] 
Fixed a nasty corruption bug

recently introduce into the new dictionary mode.
The bug could be reproduced with this command :
./zstreamtest -v --opaqueapi --no-big-tests -s4092 -t639

error was in function ZSTD_count_2segments() :
the beginning of the 2nd segment corresponds to prefixStart
and not the beginning of the current block (istart == src).
This would result in comparing the wrong byte.

7 years ago-O# with no file fails
George Lu [Sat, 2 Jun 2018 01:02:56 +0000 (18:02 -0700)] 
-O# with no file fails

7 years agoAdded Level Option
George Lu [Fri, 1 Jun 2018 21:27:53 +0000 (14:27 -0700)] 
Added Level Option

7 years agoMerge pull request #1159 from GeorgeLu97/suffixlist
Yann Collet [Fri, 1 Jun 2018 21:00:10 +0000 (14:00 -0700)] 
Merge pull request #1159 from GeorgeLu97/suffixlist

Unknown Suffix Error

7 years agoAdd Error Print
George Lu [Fri, 1 Jun 2018 20:54:08 +0000 (13:54 -0700)] 
Add Error Print

7 years agoMerge pull request #1160 from GeorgeLu97/formatzstd
Yann Collet [Fri, 1 Jun 2018 19:46:03 +0000 (12:46 -0700)] 
Merge pull request #1160 from GeorgeLu97/formatzstd

Added --format=zstd

7 years agoRemove echo 1159/head
George Lu [Fri, 1 Jun 2018 19:45:02 +0000 (12:45 -0700)] 
Remove echo

7 years agoAdded new --zstd= format
George Lu [Fri, 1 Jun 2018 19:39:39 +0000 (12:39 -0700)] 
Added new --zstd= format

7 years agoModified Tests 1160/head
George Lu [Fri, 1 Jun 2018 17:54:51 +0000 (10:54 -0700)] 
Modified Tests

Changed format as per suggestion and added second test

7 years agoSuffix list test
George Lu [Fri, 1 Jun 2018 17:43:06 +0000 (10:43 -0700)] 
Suffix list test

7 years agoMerge pull request #1157 from facebook/decompressedSize
Yann Collet [Fri, 1 Jun 2018 17:28:17 +0000 (10:28 -0700)] 
Merge pull request #1157 from facebook/decompressedSize

minor : improved zstd.h API code comment

7 years agoAdded Test Case
George Lu [Fri, 1 Jun 2018 16:52:25 +0000 (09:52 -0700)] 
Added Test Case

7 years agoupdate display
George Lu [Fri, 1 Jun 2018 01:04:05 +0000 (18:04 -0700)] 
update display

7 years agoupdate man
George Lu [Fri, 1 Jun 2018 01:03:52 +0000 (18:03 -0700)] 
update man

7 years agoremoved strcats
George Lu [Fri, 1 Jun 2018 00:47:29 +0000 (17:47 -0700)] 
removed strcats

7 years agocopy paste
George Lu [Fri, 1 Jun 2018 00:39:36 +0000 (17:39 -0700)] 
copy paste

7 years agoMerge pull request #1151 from felixhandte/zstd-dfast-in-place-dict-goto
Yann Collet [Fri, 1 Jun 2018 00:37:09 +0000 (17:37 -0700)] 
Merge pull request #1151 from felixhandte/zstd-dfast-in-place-dict-goto

ZSTD_dfast: Support Searching the Dictionary Context In-Place (Alternate `goto` Implementation)

7 years agoUnknown Suffix Error
George Lu [Thu, 31 May 2018 23:13:36 +0000 (16:13 -0700)] 
Unknown Suffix Error

Changed so only compiled formats are printed in list of supported extensions