adding enableDedicatedDictSearch to matchState_t
This commit is contained in:
parent
50550a14ad
commit
31e581bf65
@ -3491,8 +3491,10 @@ ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2(const void* dict, size_t dict
|
|||||||
{
|
{
|
||||||
ZSTD_compressionParameters const cParams = ZSTD_dedicatedDictSearch_getCParams(
|
ZSTD_compressionParameters const cParams = ZSTD_dedicatedDictSearch_getCParams(
|
||||||
cctxParams.compressionLevel, dictSize);
|
cctxParams.compressionLevel, dictSize);
|
||||||
return ZSTD_createCDict_advanced(dict, dictSize,
|
ZSTD_CDict* const cdict = ZSTD_createCDict_advanced(dict, dictSize,
|
||||||
dictLoadMethod, dictContentType, cParams, customMem);
|
dictLoadMethod, dictContentType, cParams, customMem);
|
||||||
|
cdict->matchState.enableDedicatedDictSearch = enableDedicatedDictSearch;
|
||||||
|
return cdict;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,6 +153,7 @@ struct ZSTD_matchState_t {
|
|||||||
U32* hashTable;
|
U32* hashTable;
|
||||||
U32* hashTable3;
|
U32* hashTable3;
|
||||||
U32* chainTable;
|
U32* chainTable;
|
||||||
|
int enableDedicatedDictSearch;
|
||||||
optState_t opt; /* optimal parser state */
|
optState_t opt; /* optimal parser state */
|
||||||
const ZSTD_matchState_t* dictMatchState;
|
const ZSTD_matchState_t* dictMatchState;
|
||||||
ZSTD_compressionParameters cParams;
|
ZSTD_compressionParameters cParams;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user