]> git.ipfire.org Git - thirdparty/zstd.git/log
thirdparty/zstd.git
8 years agofixed overlapLog==0 => no overlap 527/head
Yann Collet [Mon, 30 Jan 2017 22:54:46 +0000 (14:54 -0800)] 
fixed overlapLog==0 => no overlap

8 years agofixed C constant restrictions
Yann Collet [Mon, 30 Jan 2017 22:37:08 +0000 (14:37 -0800)] 
fixed C constant restrictions

8 years agozstdmt : section size is set to be a minimum of overlapSize
Yann Collet [Mon, 30 Jan 2017 21:35:45 +0000 (13:35 -0800)] 
zstdmt : section size is set to be a minimum of overlapSize

the minimum size condition size is applied transparently (no warning, no error)
like previous minimum section size condition (1 KB) which still applies.

8 years agocli : added advanced parameter overlapLog
Yann Collet [Mon, 30 Jan 2017 21:07:24 +0000 (13:07 -0800)] 
cli : added advanced parameter overlapLog

as a hidden (undocumented) parameter for now

8 years agozstreamtest uses random section sizes for fuzzing
Yann Collet [Mon, 30 Jan 2017 20:50:31 +0000 (12:50 -0800)] 
zstreamtest uses random section sizes for fuzzing

8 years agozstreamtest uses random overlapLog for fuzzing
Yann Collet [Mon, 30 Jan 2017 20:46:35 +0000 (12:46 -0800)] 
zstreamtest uses random overlapLog for fuzzing

8 years agoadded command --block-size=
Yann Collet [Mon, 30 Jan 2017 19:17:26 +0000 (11:17 -0800)] 
added command --block-size=

for Multi-threading only.
alias : -B#

8 years agochanged advanced parameter overlapLog
Yann Collet [Mon, 30 Jan 2017 19:00:00 +0000 (11:00 -0800)] 
changed advanced parameter overlapLog

Follows a positive logic (increasing value => increasing overlap)
which is easier to use

8 years agoreduced zstdmt latency when using small custom section sizes with high compression...
Yann Collet [Fri, 27 Jan 2017 23:55:30 +0000 (15:55 -0800)] 
reduced zstdmt latency when using small custom section sizes with high compression levels

Previous version was requiring a fairly large initial amount of input data
before starting to create compression jobs.
This new version starts the process much sooner.

8 years agoFixed status display for zstdmt
Yann Collet [Fri, 27 Jan 2017 21:30:18 +0000 (13:30 -0800)] 
Fixed status display for zstdmt

There is a large buffering effect when using zstdmt in MT mode.
Consequently, data is read first, pushed to workers,
and only later will the compressed result come out.
That means there is no longer immediate correlation
between amount of data read, and amount of data written.

This patch disables the displaying of % compression
when multi-threading is enabled.

It adds the displaying of total size when it can be determined
(it usually can be determined for files, but not for stdin)
so the user has a sense of "how far from the end" the compression compressed is.

There is no modification to decompression side,
since decompression is only single-threaded for now.

8 years agochanged format specification version number
Yann Collet [Fri, 27 Jan 2017 20:16:16 +0000 (12:16 -0800)] 
changed format specification version number

8 years agoMerge pull request #522 from terrelln/benchmt
Yann Collet [Fri, 27 Jan 2017 19:40:25 +0000 (11:40 -0800)] 
Merge pull request #522 from terrelln/benchmt

Fix some includes

8 years agoupdated NEWS
Yann Collet [Fri, 27 Jan 2017 19:27:34 +0000 (11:27 -0800)] 
updated NEWS

8 years agoMerge pull request #520 from iburinoc/spec
Yann Collet [Fri, 27 Jan 2017 19:26:38 +0000 (11:26 -0800)] 
Merge pull request #520 from iburinoc/spec

Updated format specification to be easier to understand

8 years agofixed MSAN warnings in legacy decoders
Yann Collet [Fri, 27 Jan 2017 18:44:03 +0000 (10:44 -0800)] 
fixed MSAN warnings in legacy decoders

In some extraordinary circumstances,
*Length field can be generated from reading a partially uninitialized memory segment.
Data is correctly identified as corrupted later on,
but the read taints some later pointer arithmetic operation.

8 years agoFix cmake build 522/head
Nick Terrell [Fri, 27 Jan 2017 18:27:29 +0000 (10:27 -0800)] 
Fix cmake build

8 years agoupdated NEWS
Yann Collet [Fri, 27 Jan 2017 11:22:37 +0000 (03:22 -0800)] 
updated NEWS

8 years agoEdits as per comments, and change wildcard 'X' to '?' 520/head
Sean Purcell [Fri, 27 Jan 2017 00:58:25 +0000 (16:58 -0800)] 
Edits as per comments, and change wildcard 'X' to '?'

8 years agoFix Visual Studios project
Nick Terrell [Fri, 27 Jan 2017 00:07:59 +0000 (16:07 -0800)] 
Fix Visual Studios project

8 years agoFix pool.c threading.h import
Nick Terrell [Thu, 26 Jan 2017 23:29:10 +0000 (15:29 -0800)] 
Fix pool.c threading.h import

8 years agoFix zstdmt_compress.h include
Nick Terrell [Thu, 26 Jan 2017 23:25:32 +0000 (15:25 -0800)] 
Fix zstdmt_compress.h include

8 years agoMerge pull request #519 from inikep/dev11
Yann Collet [Thu, 26 Jan 2017 22:23:44 +0000 (14:23 -0800)] 
Merge pull request #519 from inikep/dev11

Dev11

8 years agoMerge pull request #518 from facebook/zstdmt
Yann Collet [Thu, 26 Jan 2017 22:22:27 +0000 (14:22 -0800)] 
Merge pull request #518 from facebook/zstdmt

zstd with multi-threading

8 years agofixed : ZSTD_setCCtxParameter() properly exposed in DLL 518/head
Yann Collet [Thu, 26 Jan 2017 20:24:21 +0000 (12:24 -0800)] 
fixed : ZSTD_setCCtxParameter() properly exposed in DLL

8 years agoFixed commented issues
Sean Purcell [Thu, 26 Jan 2017 19:15:34 +0000 (11:15 -0800)] 
Fixed commented issues

8 years agofixed clang documentation warning
Yann Collet [Thu, 26 Jan 2017 17:16:56 +0000 (09:16 -0800)] 
fixed clang documentation warning

8 years agoCLI : automatically set overlap size to max (windowSize) for max compression level
Yann Collet [Thu, 26 Jan 2017 01:01:13 +0000 (17:01 -0800)] 
CLI : automatically set overlap size to max (windowSize) for max compression level

8 years agoUpdated format specification to be easier to understand
Sean Purcell [Thu, 26 Jan 2017 00:41:52 +0000 (16:41 -0800)] 
Updated format specification to be easier to understand

8 years agoadded test of new parameter ZSTD_p_forceWindow
Yann Collet [Thu, 26 Jan 2017 00:39:03 +0000 (16:39 -0800)] 
added test of new parameter ZSTD_p_forceWindow

8 years agofixed zstdmt corruption issue when enabling overlapped sections
Yann Collet [Thu, 26 Jan 2017 00:25:38 +0000 (16:25 -0800)] 
fixed zstdmt corruption issue when enabling overlapped sections

see Asana board for detailed explanation on why and how to fix it

8 years agofixed zstdmt cli freeze issue with large nb of threads
Yann Collet [Wed, 25 Jan 2017 20:31:07 +0000 (12:31 -0800)] 
fixed zstdmt cli freeze issue with large nb of threads

fileio.c was continually pushing more content without giving a chance to flush compressed one.
It would block the job queue when input data was accumulated too fast (requiring to define many threads).
Fixed : fileio flushes whatever it can after each input attempt.

8 years agoimproved #232 fix 519/head
Przemyslaw Skibinski [Wed, 25 Jan 2017 12:11:26 +0000 (13:11 +0100)] 
improved #232 fix

8 years agoFixed https://github.com/facebook/zstd/issues/232
Przemyslaw Skibinski [Wed, 25 Jan 2017 12:02:33 +0000 (13:02 +0100)] 
Fixed https://github.com/facebook/zstd/issues/232

8 years agoMerge remote-tracking branch 'refs/remotes/origin/master' into dev11
Przemyslaw Skibinski [Wed, 25 Jan 2017 11:24:24 +0000 (12:24 +0100)] 
Merge remote-tracking branch 'refs/remotes/origin/master' into dev11

8 years ago.travis.yml: different tests for "master" branch
Przemyslaw Skibinski [Wed, 25 Jan 2017 10:57:28 +0000 (11:57 +0100)] 
.travis.yml: different tests for "master" branch

8 years ago.travis.yml: optimized order of short tests
Przemyslaw Skibinski [Wed, 25 Jan 2017 10:19:35 +0000 (11:19 +0100)] 
.travis.yml: optimized order of short tests

8 years agooverlapped section, for improved compression
Yann Collet [Wed, 25 Jan 2017 06:32:12 +0000 (22:32 -0800)] 
overlapped section, for improved compression

Sections 2+ read a bit of data from previous section
in order to improve compression ratio.
This also costs some CPU, to reference read data.

Read data is currently fixed to window>>3 size

8 years agorefactor job creation
Yann Collet [Wed, 25 Jan 2017 01:41:49 +0000 (17:41 -0800)] 
refactor job creation

code shared accross ZSTDMT_{compress,flush,end}Stream(),
for easier maintenance

8 years agozstdmt cli and API allow selection of section sizes
Yann Collet [Wed, 25 Jan 2017 01:02:26 +0000 (17:02 -0800)] 
zstdmt cli and API allow selection of section sizes

By default, section sizes are 4x window size.
This new setting allow manual selection of section sizes.
The larger they are, the (slightly) better the compression ratio,
but also the higher the memory allocation cost,
and eventually the lesser the nb of possible threads,
since each section is compressed by a single thread.

It also introduces a prototype to set generic parameters,
ZSTDMT_setMTCtxParameter()

The idea is that it's possible to add enums
to extend the list of parameters that can be set this way.
This is more long-term oriented than a fixed-size struct.
Consider it as a test.

8 years agoZSTDMT now supports frame checksum
Yann Collet [Tue, 24 Jan 2017 19:48:40 +0000 (11:48 -0800)] 
ZSTDMT now supports frame checksum

8 years ago.travis.yml: test jobs 12-15
Przemyslaw Skibinski [Tue, 24 Jan 2017 16:42:28 +0000 (17:42 +0100)] 
.travis.yml: test jobs 12-15

8 years agoJOB_NUMBER -eq 9
Przemyslaw Skibinski [Tue, 24 Jan 2017 14:01:46 +0000 (15:01 +0100)] 
JOB_NUMBER -eq 9

8 years agoimproved ZSTD_compressBlock_opt_extDict_generic
Przemyslaw Skibinski [Tue, 24 Jan 2017 12:18:50 +0000 (13:18 +0100)] 
improved ZSTD_compressBlock_opt_extDict_generic

8 years agorefactor ZSTDMT streaming flush code
Yann Collet [Mon, 23 Jan 2017 19:43:51 +0000 (11:43 -0800)] 
refactor ZSTDMT streaming flush code

now shared by both ZSTDMT_compressStream() and ZSTDMT_flushStream()

8 years agoZSTDMT streaming : fall back to (regular) single thread mode
Yann Collet [Mon, 23 Jan 2017 09:43:58 +0000 (01:43 -0800)] 
ZSTDMT streaming : fall back to (regular) single thread mode

when nbThreads==1

8 years agoZSTDMT_compressCCtx : fallback to single-thread mode when nbChunks==1
Yann Collet [Mon, 23 Jan 2017 08:56:54 +0000 (00:56 -0800)] 
ZSTDMT_compressCCtx : fallback to single-thread mode when nbChunks==1

8 years agoZSTDMT_compressStream() becomes blocking when required to ensure forward progresses
Yann Collet [Mon, 23 Jan 2017 07:49:52 +0000 (23:49 -0800)] 
ZSTDMT_compressStream() becomes blocking when required to ensure forward progresses

In some (rare) cases, job list could be blocked by a first job still being processed,
while all following ones are completed, waiting to be flushed.
In such case, the current job-table implementation is unable to accept new job.
As a consequence, a call to ZSTDMT_compressStream() can be useless (nothing read, nothing flushed),
with the risk to trigger a busy-wait on the caller side
(needlessly loop over ZSTDMT_compressStream() ).

In such a case, ZSTDMT_compressStream() will block until the first job is completed and ready to flush.
It ensures some forward progress by guaranteeing it will flush at least a part of the completed job.
Energy-wasting busy-wait is avoided.

8 years agoZSTDMT_initCStream_usingDict() can outlive dict
Yann Collet [Mon, 23 Jan 2017 00:40:06 +0000 (16:40 -0800)] 
ZSTDMT_initCStream_usingDict() can outlive dict

Like ZSTD_initCStream_usingDict(),
ZSTDMT_initCStream_usingDict() now keep a copy of dict internally.
This way, dict can be released :
it does not longer have to outlive all future compression sessions.

8 years agoplaytest.sh : changed sdiff into $DIFF
Yann Collet [Sun, 22 Jan 2017 23:54:14 +0000 (15:54 -0800)] 
playtest.sh : changed sdiff into $DIFF

8 years agoprotected (mutex) read to jobCompleted, as suggested by @terrelln
Yann Collet [Sun, 22 Jan 2017 06:14:08 +0000 (22:14 -0800)] 
protected (mutex) read to jobCompleted, as suggested by @terrelln

8 years agooptimized pool allocation by 1 slot
Yann Collet [Sun, 22 Jan 2017 06:06:49 +0000 (22:06 -0800)] 
optimized pool allocation by 1 slot

8 years agominor : tab to spaces
Yann Collet [Sun, 22 Jan 2017 05:56:36 +0000 (21:56 -0800)] 
minor : tab to spaces

8 years agoconvert tabs to space
Yann Collet [Sat, 21 Jan 2017 01:23:19 +0000 (17:23 -0800)] 
convert tabs to space

joys of using multiple editors from multiple environments ...

8 years agofixed : compilation of zstreamtest in dll mode
Yann Collet [Sat, 21 Jan 2017 01:18:41 +0000 (17:18 -0800)] 
fixed : compilation of zstreamtest in dll mode

8 years agoResolved merge conflict dev+zstdmt
Yann Collet [Sat, 21 Jan 2017 00:44:50 +0000 (16:44 -0800)] 
Resolved merge conflict dev+zstdmt

8 years agoskip zstdmt at root directory
Yann Collet [Sat, 21 Jan 2017 00:36:29 +0000 (16:36 -0800)] 
skip zstdmt at root directory

8 years agofixed VS2008 project
cyan4973 [Fri, 20 Jan 2017 23:24:06 +0000 (15:24 -0800)] 
fixed VS2008 project

8 years agofixed VS2010 project
cyan4973 [Fri, 20 Jan 2017 22:49:44 +0000 (14:49 -0800)] 
fixed VS2010 project

8 years agofixed minor warnings (Visual, conversion, doxygen)
cyan4973 [Fri, 20 Jan 2017 22:00:41 +0000 (14:00 -0800)] 
fixed minor warnings (Visual, conversion, doxygen)

8 years agoupdated util's time for Windows compatibility
cyan4973 [Fri, 20 Jan 2017 20:23:30 +0000 (12:23 -0800)] 
updated util's time for Windows compatibility

Correctly measures time on Posix systems when running with
Multi-threading

Todo : check Windows measurement under multi-threading

8 years agominor refactoring : cleaner MT integration within bench
Yann Collet [Fri, 20 Jan 2017 01:44:15 +0000 (17:44 -0800)] 
minor refactoring : cleaner MT integration within bench

8 years agorenamed savedRep into repToConfirm
Yann Collet [Fri, 20 Jan 2017 01:33:37 +0000 (17:33 -0800)] 
renamed savedRep into repToConfirm

8 years agozstd cli can now compress using multi-threading
Yann Collet [Fri, 20 Jan 2017 00:59:56 +0000 (16:59 -0800)] 
zstd cli can now compress using multi-threading

added : command -T#
added : ZSTD_resetCStream() (zstdmt_compress)
added : FIO_setNbThreads()  (fileio)

8 years agoAdded ZSTDMT_initCStream_advanced() variant
Yann Collet [Thu, 19 Jan 2017 23:32:07 +0000 (15:32 -0800)] 
Added ZSTDMT_initCStream_advanced() variant

Correctly compress with custom params and dictionary
Added relevant fuzzer test in zstreamtest

Also :
new macro ZSTDMT_SECTION_LOGSIZE_MIN, which sets a minimum size for a full job
(note : a flush() command can still generate a partial job anytime)

8 years agochanged MT enabling macro to ZSTD_MULTITHREAD
Yann Collet [Thu, 19 Jan 2017 22:05:07 +0000 (14:05 -0800)] 
changed MT enabling macro to ZSTD_MULTITHREAD

8 years agofixed minor warning (unused variable) in fuzzer
Yann Collet [Thu, 19 Jan 2017 21:46:30 +0000 (13:46 -0800)] 
fixed minor warning (unused variable) in fuzzer

8 years agoadded streaming fuzzer tests for MT API
Yann Collet [Thu, 19 Jan 2017 20:12:50 +0000 (12:12 -0800)] 
added streaming fuzzer tests for MT API

Also : fixed corner case, where nb of jobs completed becomes > jobQueueSize
which is possible when many flushes are issued
while there is not enough dst buffer to flush completed ones.

8 years agofixed Multi-threaded compression
Yann Collet [Thu, 19 Jan 2017 18:32:55 +0000 (10:32 -0800)] 
fixed Multi-threaded compression

MT compression generates a single frame.
Multi-threading operates by breaking the frames into independent sections.
But from a decoder perspective, there is no difference :
it's just a suite of blocks.

Problem is, decoder preserves repCodes from previous block to start decoding next block.
This is also valid between sections, since they are no different than changing block.

Previous version would incorrectly initialize repcodes to their default value at the beginning of each section.
When using them, there was a mismatch between encoder (default values) and decoder (values from previous block).

This change ensures that repcodes won't be used at the beginning of a new section.
It works by setting them to 0.
This only works with regular (single segment) variants : extDict variants will fail !
Fortunately, sections beyond the 1st one belong to this category.

To be checked : btopt strategy.
This change was only validated from fast to btlazy2 strategies.

8 years agoSimplified compressChunk job
Yann Collet [Thu, 19 Jan 2017 18:18:17 +0000 (10:18 -0800)] 
Simplified compressChunk job

minor refactoring : compression done in a single call on first chunk
Avoid a mutable hSize variable and eventual recombination to cSize at the end

8 years agoMerge pull request #516 from inikep/dev11
Yann Collet [Thu, 19 Jan 2017 17:06:13 +0000 (09:06 -0800)] 
Merge pull request #516 from inikep/dev11

fix for zlibWrapper

8 years agoMerge pull request #515 from iburinoc/emptydict
Yann Collet [Thu, 19 Jan 2017 17:02:42 +0000 (09:02 -0800)] 
Merge pull request #515 from iburinoc/emptydict

Don't create dict in streaming apis if dictSize == 0

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11 516/head
Przemyslaw Skibinski [Thu, 19 Jan 2017 11:11:22 +0000 (12:11 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agozlibWrapper: added the totalInBytes flag - we need it as strm->total_in can be reset...
Przemyslaw Skibinski [Thu, 19 Jan 2017 11:10:52 +0000 (12:10 +0100)] 
zlibWrapper: added the totalInBytes flag - we need it as strm->total_in can be reset by user

8 years agoZSTDMT_endStream : nullify input buffer after flush
Yann Collet [Wed, 18 Jan 2017 23:32:38 +0000 (15:32 -0800)] 
ZSTDMT_endStream : nullify input buffer after flush

There will be no more input after ZSTDMT_endStream invocation :
only flush/end is allowed (to fully collect compressed result).

8 years agoMerge pull request #514 from inikep/dev11
Yann Collet [Wed, 18 Jan 2017 23:21:17 +0000 (15:21 -0800)] 
Merge pull request #514 from inikep/dev11

fixed gz functions based on zlib 1.2.11

8 years agoZSTDMT_initCStream() supports restart from invalid state
Yann Collet [Wed, 18 Jan 2017 23:18:17 +0000 (15:18 -0800)] 
ZSTDMT_initCStream() supports restart from invalid state

ZSTDMT_initCStream() will correcly scrub for resources
when it detects that previous compression was not properly finished.

8 years agotrap compression errors, collect back resources from workers
Yann Collet [Wed, 18 Jan 2017 22:11:37 +0000 (14:11 -0800)] 
trap compression errors, collect back resources from workers

8 years agoPrefix notes with /**< 515/head
Sean Purcell [Wed, 18 Jan 2017 21:44:43 +0000 (13:44 -0800)] 
Prefix notes with /**<

8 years agoCCtxPool starts empty, as suggested by @terrelln
Yann Collet [Wed, 18 Jan 2017 20:12:10 +0000 (12:12 -0800)] 
CCtxPool starts empty, as suggested by @terrelln

Also : make zstdmt now a target from root

8 years agofixed cmaketest
Yann Collet [Wed, 18 Jan 2017 19:57:34 +0000 (11:57 -0800)] 
fixed cmaketest

(buffer_t){NULL,0} is not considered a constant.
{NULL,0} is.

8 years agoupdated link to copyright notice 514/head
Przemyslaw Skibinski [Wed, 18 Jan 2017 18:04:00 +0000 (19:04 +0100)] 
updated link to copyright notice

8 years agofixed clang warnings in gzread.c and gzwrite.c
Przemyslaw Skibinski [Wed, 18 Jan 2017 13:36:10 +0000 (14:36 +0100)] 
fixed clang warnings in gzread.c and gzwrite.c

8 years agogzcompatibility.h updated to zlib 1.2.11
Przemyslaw Skibinski [Wed, 18 Jan 2017 11:51:44 +0000 (12:51 +0100)] 
gzcompatibility.h updated to zlib 1.2.11

8 years agogzwrite.c updated to zlib 1.2.11
Przemyslaw Skibinski [Wed, 18 Jan 2017 11:47:32 +0000 (12:47 +0100)] 
gzwrite.c updated to zlib 1.2.11

8 years agogzread.c updated to zlib 1.2.11
Przemyslaw Skibinski [Wed, 18 Jan 2017 11:14:01 +0000 (12:14 +0100)] 
gzread.c updated to zlib 1.2.11

8 years agogzlib.c updated to zlib 1.2.11
Przemyslaw Skibinski [Wed, 18 Jan 2017 11:08:08 +0000 (12:08 +0100)] 
gzlib.c updated to zlib 1.2.11

8 years agogzguts.h updated to zlib 1.2.11
Przemyslaw Skibinski [Wed, 18 Jan 2017 11:01:50 +0000 (12:01 +0100)] 
gzguts.h updated to zlib 1.2.11

8 years agoget_crc_table only with ZLIB_VERNUM >= 0x1270
Przemyslaw Skibinski [Wed, 18 Jan 2017 09:39:39 +0000 (10:39 +0100)] 
get_crc_table only with ZLIB_VERNUM >= 0x1270

8 years agoZSTDMT_free() scrubs potentially unfinished jobs to release their resources
Yann Collet [Wed, 18 Jan 2017 01:46:33 +0000 (17:46 -0800)] 
ZSTDMT_free() scrubs potentially unfinished jobs to release their resources

In some complex scenarios (free() without finishing compression),
it is possible that some resources are still into jobs
and not collected back into pools.
In which case, previous version of free() would miss them.
This would be equivalent to a leak.

New version ensures that it even foes after such resource.
It requires job consumers to properly mark resources as released,
by replacing entries by NULL after releasing back to the pool.

Obviously, it's not recommended to free() zstdmt context mid-term,
still that's now a supported scenario.

The same methodology is also used to ensure proper resource collection
after an error is detected.

Still to do :
- detect compression errors (not just allocation ones)
- properly manage resource when init() is called without finishing previous compression.

8 years agoZSTDMT_{flush,end}Stream() now block on next job completion when nothing to flush
Yann Collet [Wed, 18 Jan 2017 00:15:18 +0000 (16:15 -0800)] 
ZSTDMT_{flush,end}Stream() now block on next job completion when nothing to flush

The main issue was to avoid a caller to continually loop on {flush,end}Stream()
when there was nothing ready to be flushed but still some compression work ongoing in a worker thread.
The continuous loop would have resulted in wasted energy.
The new version makes call to {flush,end}Stream blocking when there is nothing ready to be flushed.
Of course, if all worker threads have exhausted job, it will return zero (all flush completed).

Note : There are still some remaining issues to report error codes
and properly collect back resources into pools when an error is triggered.

8 years agocompleted ZSTDMT streaming compression
Yann Collet [Tue, 17 Jan 2017 23:31:16 +0000 (15:31 -0800)] 
completed ZSTDMT streaming compression

Provides the baseline compression API :
size_t ZSTDMT_initCStream(ZSTDMT_CCtx* zcs, int compressionLevel);
size_t ZSTDMT_compressStream(ZSTDMT_CCtx* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input);
size_t ZSTDMT_flushStream(ZSTDMT_CCtx* zcs, ZSTD_outBuffer* output);
size_t ZSTDMT_endStream(ZSTDMT_CCtx* zcs, ZSTD_outBuffer* output);

Not tested yet

8 years agoDon't create dict in streaming apis if dictSize == 0
Sean Purcell [Tue, 17 Jan 2017 19:04:08 +0000 (11:04 -0800)] 
Don't create dict in streaming apis if dictSize == 0

8 years agoupdated NEWS
Yann Collet [Tue, 17 Jan 2017 21:15:25 +0000 (13:15 -0800)] 
updated NEWS

8 years agoMerge remote-tracking branch 'refs/remotes/facebook/dev' into dev11
Przemyslaw Skibinski [Tue, 17 Jan 2017 12:02:29 +0000 (13:02 +0100)] 
Merge remote-tracking branch 'refs/remotes/facebook/dev' into dev11

8 years agozlibWrapper: added get_crc_table
Przemyslaw Skibinski [Tue, 17 Jan 2017 12:02:06 +0000 (13:02 +0100)] 
zlibWrapper: added get_crc_table

8 years agoadded "Makefile is validated"
Przemyslaw Skibinski [Tue, 17 Jan 2017 11:40:06 +0000 (12:40 +0100)] 
added "Makefile is validated"

8 years agoMerge pull request #511 from indygreg/cdict-dictid
Yann Collet [Tue, 17 Jan 2017 04:17:44 +0000 (20:17 -0800)] 
Merge pull request #511 from indygreg/cdict-dictid

Set dictionary ID in ZSTD_initCStream_usingCDict()

8 years agoadded test checking dictID when using ZSTD_initCStream_usingCDict()
Yann Collet [Tue, 17 Jan 2017 03:46:22 +0000 (19:46 -0800)] 
added test checking dictID when using ZSTD_initCStream_usingCDict()

It shows that dictID is not properly added into frame header

8 years agoSet dictionary ID in ZSTD_initCStream_usingCDict() 511/head
Gregory Szorc [Sun, 15 Jan 2017 01:44:54 +0000 (17:44 -0800)] 
Set dictionary ID in ZSTD_initCStream_usingCDict()

When porting python-zstandard to use ZSTD_initCStream_usingCDict()
so compression dictionaries could be reused, an automated test
failed due to compressed content changing.

I tracked this down to ZSTD_initCStream_usingCDict() not
setting the dictID field of the ZSTD_CCtx attached to the
ZSTD_CStream instance.

I'm not 100% convinced this is the correct or full solution,
as I'm still seeing one automated test failing with this change.

8 years agoMerge pull request #510 from iburinoc/baddict
Yann Collet [Thu, 12 Jan 2017 21:10:04 +0000 (22:10 +0100)] 
Merge pull request #510 from iburinoc/baddict

Fixed decompress_usingDict not propagating corrupted dictionary error