summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-08-10 18:03:27 (GMT)
committerYann Collet <cyan@fb.com>2020-08-10 18:03:27 (GMT)
commit7b1b078dfcedd169332b0583d34daa65b2c585db (patch)
tree3b97c11bf8314eaf268fa8a499e5c92fcefd05c0 /lib/lz4.h
parentb01c58000e39ee7208032317fb1f0f96832e9e06 (diff)
downloadlz4-7b1b078dfcedd169332b0583d34daa65b2c585db.zip
lz4-7b1b078dfcedd169332b0583d34daa65b2c585db.tar.gz
lz4-7b1b078dfcedd169332b0583d34daa65b2c585db.tar.bz2
fix #876
by introducing a max limit acceleration value
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index 32108e2..54ec3fb 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -186,7 +186,8 @@ LZ4LIB_API int LZ4_compressBound(int inputSize);
The larger the acceleration value, the faster the algorithm, but also the lesser the compression.
It's a trade-off. It can be fine tuned, with each successive value providing roughly +~3% to speed.
An acceleration value of "1" is the same as regular LZ4_compress_default()
- Values <= 0 will be replaced by ACCELERATION_DEFAULT (currently == 1, see lz4.c).
+ Values <= 0 will be replaced by LZ4_ACCELERATION_DEFAULT (currently == 1, see lz4.c).
+ Values > LZ4_ACCELERATION_MAX will be replaced by LZ4_ACCELERATION_MAX (currently == 65537, see lz4.c).
*/
LZ4LIB_API int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acceleration);