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
12
rzip.c
12
rzip.c
|
|
@ -547,17 +547,15 @@ find_best_match(rzip_control *control, struct rzip_state *st, tag t, i64 p,
|
|||
if (t == he->t) {
|
||||
mlen = control->match_len(control, st, p, he->offset, end,
|
||||
&rev);
|
||||
|
||||
if (mlen)
|
||||
st->stats.tag_hits++;
|
||||
else
|
||||
st->stats.tag_misses++;
|
||||
|
||||
if (mlen >= length) {
|
||||
if (mlen) {
|
||||
if (mlen > length) {
|
||||
length = mlen;
|
||||
(*offset) = he->offset - rev;
|
||||
(*reverse) = rev;
|
||||
}
|
||||
st->stats.tag_hits++;
|
||||
} else
|
||||
st->stats.tag_misses++;
|
||||
}
|
||||
|
||||
h++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue