mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-01-17 06:32:05 +00:00
Compress LZSA2 faster
This commit is contained in:
parent
f27ac9ae25
commit
26a64de95e
@ -435,6 +435,7 @@ static void lzsa_optimize_forward_v2(lzsa_compressor *pCompressor, const unsigne
|
|||||||
n++) {
|
n++) {
|
||||||
if (pDestSlots[n].rep_offset == nMatchOffset) {
|
if (pDestSlots[n].rep_offset == nMatchOffset) {
|
||||||
exists = 1;
|
exists = 1;
|
||||||
|
nInsertedNoRepMatchCandidate = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -447,6 +448,7 @@ static void lzsa_optimize_forward_v2(lzsa_compressor *pCompressor, const unsigne
|
|||||||
(!nInsertForwardReps || pDestSlots[nn].rep_pos >= i || nScore >= (pDestSlots[nn].score + nDisableScore) ||
|
(!nInsertForwardReps || pDestSlots[nn].rep_pos >= i || nScore >= (pDestSlots[nn].score + nDisableScore) ||
|
||||||
pDestSlots[nMatchesPerArrival - 1].from_slot)) {
|
pDestSlots[nMatchesPerArrival - 1].from_slot)) {
|
||||||
exists = 1;
|
exists = 1;
|
||||||
|
nInsertedNoRepMatchCandidate = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user