Compress LZSA2 faster

This commit is contained in:
Emmanuel Marty 2020-03-24 12:04:25 +01:00 committed by GitHub
parent f27ac9ae25
commit 26a64de95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,6 +435,7 @@ static void lzsa_optimize_forward_v2(lzsa_compressor *pCompressor, const unsigne
n++) {
if (pDestSlots[n].rep_offset == nMatchOffset) {
exists = 1;
nInsertedNoRepMatchCandidate = 1;
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) ||
pDestSlots[nMatchesPerArrival - 1].from_slot)) {
exists = 1;
nInsertedNoRepMatchCandidate = 1;
break;
}
}