mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Microoptimisation
This commit is contained in:
parent
edc7f5a7ce
commit
aa753fee53
16
rzip.c
16
rzip.c
|
|
@ -547,17 +547,15 @@ find_best_match(rzip_control *control, struct rzip_state *st, tag t, i64 p,
|
||||||
if (t == he->t) {
|
if (t == he->t) {
|
||||||
mlen = control->match_len(control, st, p, he->offset, end,
|
mlen = control->match_len(control, st, p, he->offset, end,
|
||||||
&rev);
|
&rev);
|
||||||
|
if (mlen) {
|
||||||
if (mlen)
|
if (mlen > length) {
|
||||||
|
length = mlen;
|
||||||
|
(*offset) = he->offset - rev;
|
||||||
|
(*reverse) = rev;
|
||||||
|
}
|
||||||
st->stats.tag_hits++;
|
st->stats.tag_hits++;
|
||||||
else
|
} else
|
||||||
st->stats.tag_misses++;
|
st->stats.tag_misses++;
|
||||||
|
|
||||||
if (mlen >= length) {
|
|
||||||
length = mlen;
|
|
||||||
(*offset) = he->offset - rev;
|
|
||||||
(*reverse) = rev;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h++;
|
h++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue