Elliot Gorokhovsky
2a128110d0
Add prefetchCDictTables CCtxParam
2022-06-22 16:13:07 -04:00
Dominique Pelle
b772f53952
Typo and grammar fixes
2022-03-12 08:58:04 +01:00
Yann Collet
bad7f82300
Merge pull request #2974 from facebook/fix2966_part3
...
Lazy parameters adaptation (part 1 - ZSTD_c_stableInBuffer)
2022-01-27 06:14:04 -08:00
Yann Collet
7616e39f3b
adding traces to better track processing of literals
2022-01-26 14:47:21 -08:00
Yann Collet
27d336b099
minor behavior refinements
...
specifically, there is no obligation to start streaming compression with pos=0.
stableSrc mode is now compatible with this setup.
2022-01-26 10:31:24 -08:00
Yann Collet
37b87add7a
make stableSrc compatible with regular streaming API
...
including flushStream().
Now the only condition is for `input.size` to continuously grow.
2022-01-26 10:31:24 -08:00
Yann Collet
c0c5ffa973
streaming compression : lazy parameter adaptation with stable input
...
effectively makes ZSTD_c_stableInput compatible ZSTD_compressStream()
and zstd_e_continue operation mode.
2022-01-26 10:31:24 -08:00
Yann Collet
87dcd3326a
fix sequence compression API in Explicit Delimiter mode
2022-01-25 13:33:41 -08:00
Tom Rix
2b957afec7
cleanup double word in comment.
...
Remove the second 'a' and 'into'
Signed-off-by: Tom Rix <trix@redhat.com>
2022-01-24 12:43:39 -08:00
W. Felix Handte
46ad9377e8
Bump Version Number to 1.5.2
2022-01-07 14:14:26 -05:00
Yann Collet
3f64b31585
Merge branch 'dev' into tomerge2051
2021-12-01 15:29:49 -08:00
Dimitris Apostolou
ebbd675998
Fix typos
2021-11-13 10:04:04 +02:00
Martin Liska
1c2b02eee9
Support thread pool section in HTML documentation.
2021-10-15 18:35:39 +02:00
Abshar Mohammed Aslam
54a888b57b
Fix typo
2021-09-23 21:54:38 +04:00
sen
1e99d36361
Merge pull request #2788 from senhuang42/param_switch
...
Use new paramSwitch enum for row matchfinder and block splitter
2021-09-22 13:27:55 -04:00
senhuang42
b5c35d7ea3
Use new paramSwitch enum for LCM, row matchfinder, and block splitter
2021-09-21 14:22:02 -04:00
Nick Terrell
a5f2c45528
Huffman ASM
2021-09-20 14:46:43 -07:00
Yann Collet
2de42174bb
make ZSTD_HASHLOG3_MAX private
...
This is an implementation detail,
it doesn't belong to public space (zstd.h).
2021-08-20 09:52:42 -07:00
Binh Vo
9d9f7680f8
Add API for fetching skippable frame content
2021-06-14 16:01:28 -04:00
Stephen Kitt
e81d567547
Distinguish static symbols, allow hiding them
...
Even with -fvisibility=hidden added to CFLAGS, any symbol which is
given a default visibility attribute ends up exported in the dynamic
library. This happens through zstd_internal.h which defines
..._STATIC_LINKING_ONLY before including various header files, and is
included for example in lib/common/pool.c.
To avoid this, this patch distinguishes static and non-static APIs, by
using ZSTDLIB_API only for the latter, and introducing
ZSTDLIB_STATIC_API for the former. For now, both are exported, but
non-static APIs can be hidden by overriding the definition
ZSTDLIB_STATIC_API. lib/Makefile is modified to allow this using
make CPPFLAGS_DYNLIB=-DZSTDLIB_STATIC_API=ZSTDLIB_HIDDEN
In addition, API declarations are dropped from zstd_compress.c (they
aren't needed there).
Signed-off-by: Stephen Kitt <steve@sk2.org>
2021-05-14 19:41:59 +02:00
sen
c730b8c5a3
Remove const data members in threadpooltest payload ( #2639 ) ( #2640 )
2021-05-12 16:09:48 -04:00
sen
9c23ea9e2b
Bump version to 1.5.0, rebuild documentation ( #2634 )
2021-05-11 16:32:09 -04:00
sen
698f261b35
[1.5.0] Deprecate some functions ( #2582 )
...
* Add deprecated macro to zstd.h, mark certain functions as deprecated
* Remove ZSTD_compress.c dependencies on deprecated functions
2021-05-06 17:59:32 -04:00
Nick Terrell
172b4b6ac4
[lib] Add ZSTD_c_deterministicRefPrefix
...
This flag forces zstd to always load the prefix in ext-dict mode, even
if it happens to be contiguous, to force determinism. It also applies to
dictionaries that are re-processed.
A determinism test case is also added, which fails without
`ZSTD_c_deterministicRefPrefix` and passes with it set.
Question: Should this be the default behavior? It isn't in this PR.
2021-05-05 18:49:56 -07:00
Yann Collet
455fd1a067
updated documentation regarding minimum job size
2021-05-05 09:03:11 -07:00
Yann Collet
40cabd0efd
Merge pull request #2608 from facebook/docMinVer
...
Documented minimum version numbers
2021-05-04 12:10:52 -07:00
Nick Terrell
a8ecf4ff88
Merge pull request #2597 from terrelln/public-headers
...
[1.5.0] Move `zstd_errors.h` and `zdict.h` to `lib/` root
2021-05-04 11:28:41 -07:00
Yann Collet
8aafbd3604
Documented minimum version numbers
...
Any stable API entry point introduced after v1.0
should be documented with its minimum version number.
Since PR fixes this requirement
updating mostly new entry points since v1.4.0
and newly introduced ones for future v1.5.0.
2021-05-04 09:05:22 -07:00
sen
4c5cc345fb
Merge pull request #2581 from senhuang42/lcm_stable
...
[1.5.0] Promote ZSTD_c_literalCompressionMode to stable params
2021-05-03 11:59:19 -04:00
sen
cdc979ddb3
Merge pull request #2580 from senhuang42/defaultclevel_to_stable
...
[1.5.0] Promote ZSTD_defaultCLevel() into stable API
2021-05-03 11:59:05 -04:00
Nick Terrell
09149beaf8
[1.5.0] Move zstd_errors.h
and zdict.h
to lib/
root
...
`zstd_errors.h` and `zdict.h` are public headers, so they deserve to be
in the root `lib/` directory with `zstd.h`, not mixed in with our private
headers.
2021-04-30 15:13:54 -07:00
Sen Huang
3c595a4a79
Add literalCompressionMode to stable cParams
2021-04-26 09:55:06 -04:00
Sen Huang
c5869677d9
Moved ZSTD_defaultCLevel() into stable API
2021-04-16 10:15:40 -07:00
Sen Huang
9c1ca3c00b
Moved ZSTD_getDictID_fromCDict() into stable API
2021-04-16 10:14:29 -07:00
Nick Terrell
4694423c4f
Add and integrate lazy row hash strategy
2021-04-07 09:53:34 -07:00
Nick Terrell
a494308ae9
[copyright][license] Switch to yearless copyright and some cleanup in the linux-kernel files
...
* Switch to yearless copyright per FB policy
* Fix up SPDX-License-Identifier lines in `contrib/linux-kernel` sources
* Add zstd copyright/license header to the `contrib/linux-kernel` sources
* Update the `tests/test-license.py` to check for yearless copyright
* Improvements to `tests/test-license.py`
* Check `contrib/linux-kernel` in `tests/test-license.py`
2021-03-30 10:30:43 -07:00
sen
b0407b9f0e
Merge pull request #2555 from senhuang42/default_clevel_func
...
Add ZSTD_defaultCLevel() function to public API
2021-03-25 13:07:28 -04:00
Sen Huang
e398744a35
Add ZSTD_defaultCLevel() function to public API
2021-03-25 08:04:00 -07:00
Nick Terrell
f8ac0ea7ef
Merge pull request #2539 from terrelln/linux-kernel-fixes
...
Fixes for the next linux kernel patch version
2021-03-24 10:34:29 -07:00
senhuang42
c56d6e49e8
Add block splitter to experimental params
2021-03-24 08:20:54 -07:00
Nick Terrell
ea288e0d8e
[lib] Bump zstd version number
2021-03-16 11:47:27 -07:00
animalize
0933775d79
doc: ZSTD_free*() functions accept NULL pointer
2021-03-04 12:02:52 +08:00
W. Felix Handte
d7db928f72
Bump Library Version 1.4.8 -> 1.4.9
2021-03-01 17:45:30 -05:00
Nick Terrell
f520f6dfbe
[trace] Minor fixes found during integration
...
* Mark `ZSTD_CCtx_getParameter()` as const
* Add `extern "C"` guards to `zstd_trace.h`
2021-02-11 16:20:04 -08:00
Nick Terrell
54a4998a80
Add basic tracing functionality
2021-02-05 16:28:52 -08:00
sen
69085db61c
Merge pull request #2446 from senhuang42/multiple_ddicts_v3
...
[RFC] Support references to multiple DDicts
2021-01-08 16:49:45 -05:00
Yann Collet
c416015ab5
Merge pull request #2459 from ThomasWaldmann/fix-typos
...
fix typos (work done by Andrea Gelmini)
2021-01-07 16:19:10 -08:00
Thomas Waldmann
f9802d80a0
fix typos (work done by Andrea Gelmini)
2021-01-07 18:47:23 +01:00
senhuang42
22b7bff2bc
Add unit test, improve documentation
2021-01-07 12:29:12 -05:00
senhuang42
ea52fc3606
Use XXHash for hash function, create a sensible public interface
2021-01-07 12:29:12 -05:00