loading dict using new algorithm

This commit is contained in:
Bimba Shrestha
2020-09-10 18:51:52 -04:00
committed by W. Felix Handte
parent 22705f0c93
commit 628559d0e4
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -2892,7 +2892,9 @@ static size_t ZSTD_loadDictionaryContent(ZSTD_matchState_t* ms,
case ZSTD_greedy:
case ZSTD_lazy:
case ZSTD_lazy2:
if (chunk >= HASH_READ_SIZE)
if (chunk >= HASH_READ_SIZE && params->enableDedicatedDictSearch)
ZSTD_lazy_loadDictionary(ms, ichunk-HASH_READ_SIZE);
else if (chunk >= HASH_READ_SIZE)
ZSTD_insertAndFindFirstIndex(ms, ichunk-HASH_READ_SIZE);
break;