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

slightly improved ratio at -22

merging of repcode search into btsearch introduced a small compression ratio regressio at max level :
1.3.2 : 52728769
after repMerge patch : 52760789 (+32020)

A few minor changes have produced this difference.
They can be hard to spot.

This patch buys back about half of the difference,
by no longer inserting position at hc3 when a long match is found there.
It feels strangely counter-intuitive, but works :
after this patch : 52742555 (-18234)
This commit is contained in:
Yann Collet
2017-11-19 13:39:12 -08:00
parent 99435dbbab
commit 42c1e64270
3 changed files with 16 additions and 13 deletions

View File

@ -310,8 +310,8 @@ static size_t BMK_benchParam(BMK_result_t* resultPtr,
}
const char* g_stratName[ZSTD_btultra] = {
"ZSTD_fast ", "ZSTD_dfast ",
const char* g_stratName[ZSTD_btultra+1] = {
"(none) ", "ZSTD_fast ", "ZSTD_dfast ",
"ZSTD_greedy ", "ZSTD_lazy ", "ZSTD_lazy2 ",
"ZSTD_btlazy2 ", "ZSTD_btopt ", "ZSTD_btultra "};