From: Yann Collet Date: Sat, 12 May 2018 16:40:04 +0000 (-0700) Subject: paramgrill: subtle change in level spacing X-Git-Tag: v1.3.5~3^2~58^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50993901b2b541a26255804f04999ddf2d3db5c8;p=thirdparty%2Fzstd.git paramgrill: subtle change in level spacing distance between levels is slightly increased to compensate for level 1 speed improvements and the will to have stronger level 19 extending the range of speed to cover. --- diff --git a/tests/paramgrill.c b/tests/paramgrill.c index d318696ec..984fb308f 100644 --- a/tests/paramgrill.c +++ b/tests/paramgrill.c @@ -47,7 +47,7 @@ static const size_t maxMemory = (sizeof(size_t)==4) ? (2 GB - 64 MB) : (size_t #define COMPRESSIBILITY_DEFAULT 0.50 -static const double g_grillDuration_s = 90000; /* about 24 hours */ +static const double g_grillDuration_s = 99999; /* about 27 hours */ static const U64 g_maxParamTime = 15 * SEC_TO_MICRO; static const U64 g_maxVariationTime = 60 * SEC_TO_MICRO; static const int g_maxNbVariations = 64; @@ -369,9 +369,9 @@ static void BMK_init_level_constraints(int bytePerSec_level1) /* establish speed objectives (relative to level 1) */ { int l; for (l=2; l= 20 may use windowlog > 23 */ + g_level_constraint[l].windowLog_max = (l<20) ? 23 : l+5; /* only --ultra levels >= 20 can use windowlog > 23 */ g_level_constraint[l].strategy_max = (l<19) ? ZSTD_btopt : ZSTD_btultra; /* level 19 is allowed to use btultra */ } } }