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

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

No files matched your search

+10 -2
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 */