Lines Matching full:strategy
113 * Minimum is made tighter as compression strategy increases.
116 ZSTD_minLiteralsToCompress(ZSTD_strategy strategy, HUF_repeat huf_repeat) in ZSTD_minLiteralsToCompress() argument
118 assert((int)strategy >= 0); in ZSTD_minLiteralsToCompress()
119 assert((int)strategy <= 9); in ZSTD_minLiteralsToCompress()
121 * then 2x larger for each successive compression strategy in ZSTD_minLiteralsToCompress()
123 { int const shift = MIN(9-(int)strategy, 3); in ZSTD_minLiteralsToCompress()
136 ZSTD_strategy strategy, in ZSTD_compressLiterals() argument
159 if (srcSize < ZSTD_minLiteralsToCompress(strategy, prevHuf->repeatMode)) in ZSTD_compressLiterals()
166 | (strategy < ZSTD_lazy && srcSize <= 1024 ? HUF_flags_preferRepeat : 0) in ZSTD_compressLiterals()
167 | (strategy >= HUF_OPTIMAL_DEPTH_THRESHOLD ? HUF_flags_optimalDepth : 0) in ZSTD_compressLiterals()
188 { size_t const minGain = ZSTD_minGain(srcSize, strategy); in ZSTD_compressLiterals()