Add prefetchCDictTables CCtxParam

This commit is contained in:
Elliot Gorokhovsky
2022-06-22 16:13:07 -04:00
parent f5c4ec4658
commit 2a128110d0
5 changed files with 38 additions and 1 deletions
+5
View File
@@ -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);