1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

changed default compression level to 3 (can be modified with macro ZSTDCLI_DEFAULT_CLEVEL)

This commit is contained in:
Yann Collet
2016-07-13 14:15:08 +02:00
parent fbc69f8649
commit 2cac5b30b9
3 changed files with 18 additions and 6 deletions

View File

@ -28,6 +28,14 @@
*/
/*-************************************
* Tuning parameters
**************************************/
#ifndef ZSTDCLI_DEFAULT_CLEVEL
# define ZSTDCLI_DEFAULT_CLEVEL 3
#endif
/*-************************************
* Includes
**************************************/
@ -207,7 +215,7 @@ int main(int argCount, const char** argv)
nextArgumentIsMaxDict=0,
nextArgumentIsDictID=0,
nextArgumentIsFile=0;
unsigned cLevel = 1;
unsigned cLevel = ZSTDCLI_DEFAULT_CLEVEL;
unsigned cLevelLast = 1;
unsigned recursive = 0;
const char** filenameTable = (const char**)malloc(argCount * sizeof(const char*)); /* argCount >= 1 */
@ -331,7 +339,7 @@ int main(int argCount, const char** argv)
/* test compressed file */
case 't': decode=1; outFileName=nulmark; argument++; break;
/* dictionary name */
/* destination file name */
case 'o': nextArgumentIsOutFileName=1; argument++; break;
/* recursive */