Add prefetchCDictTables CCtxParam
This commit is contained in:
@@ -500,6 +500,11 @@ size_t ZSTD_compressBlock_fast_dictMatchState_generic(
|
||||
* when translating a dict index into a local index */
|
||||
assert(prefixStartIndex >= (U32)(dictEnd - dictBase));
|
||||
|
||||
if (ms->prefetchCDictTables) {
|
||||
size_t const hashTableSize = ((size_t)1) << dictCParams->hashLog;
|
||||
PREFETCH_AREA(dictHashTable, hashTableSize * sizeof(U32))
|
||||
}
|
||||
|
||||
/* init */
|
||||
DEBUGLOG(5, "ZSTD_compressBlock_fast_dictMatchState_generic");
|
||||
ip0 += (dictAndPrefixLength == 0);
|
||||
|
||||
Reference in New Issue
Block a user