mirror of
https://github.com/facebook/zstd.git
synced 2025-12-08 00:03:24 -05:00
Prefetch Chain Table Matches
This commit is contained in:
parent
9b9feb84f2
commit
20a020edbc
@ -653,9 +653,13 @@ size_t ZSTD_HcFindBestMatch_generic (
|
|||||||
U32 const chainLength = chainPackedPointer & 0xFF;
|
U32 const chainLength = chainPackedPointer & 0xFF;
|
||||||
U32 const chainAttempts = nbAttempts - ddsAttempt;
|
U32 const chainAttempts = nbAttempts - ddsAttempt;
|
||||||
U32 const chainLimit = chainAttempts > chainLength ? chainLength : chainAttempts;
|
U32 const chainLimit = chainAttempts > chainLength ? chainLength : chainAttempts;
|
||||||
U32 chainAttempt = 0;
|
U32 chainAttempt;
|
||||||
|
|
||||||
for ( ; chainAttempt < chainLimit; chainAttempt++, chainIndex++) {
|
for (chainAttempt = 0 ; chainAttempt < chainLimit; chainAttempt++) {
|
||||||
|
PREFETCH_L1(ddsBase + dms->chainTable[chainIndex + chainAttempt]);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (chainAttempt = 0 ; chainAttempt < chainLimit; chainAttempt++, chainIndex++) {
|
||||||
size_t currentMl=0;
|
size_t currentMl=0;
|
||||||
const BYTE* match;
|
const BYTE* match;
|
||||||
matchIndex = dms->chainTable[chainIndex];
|
matchIndex = dms->chainTable[chainIndex];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user