mirror of
https://github.com/ckolivas/lrzip.git
synced 2025-12-06 07:12:00 +01:00
Microoptimise in hash_search.
This commit is contained in:
parent
e1fd5d6d11
commit
6f0410d28f
6
rzip.c
6
rzip.c
|
|
@ -633,10 +633,9 @@ static inline bool hash_search(rzip_control *control, struct rzip_state *st,
|
|||
}
|
||||
|
||||
while (p < end) {
|
||||
i64 reverse, mlen, offset = 0;
|
||||
i64 reverse, mlen, offset;
|
||||
|
||||
p++;
|
||||
sb->offset_search = p;
|
||||
sb->offset_search = ++p;
|
||||
if (unlikely(sb->offset_search > sb->offset_low + sb->size_low))
|
||||
remap_low_sb(control, &control->sb);
|
||||
|
||||
|
|
@ -665,6 +664,7 @@ static inline bool hash_search(rzip_control *control, struct rzip_state *st,
|
|||
if ((t & st->minimum_tag_mask) != st->minimum_tag_mask)
|
||||
continue;
|
||||
|
||||
offset = 0;
|
||||
mlen = find_best_match(control, st, t, p, end, &offset, &reverse);
|
||||
|
||||
/* Only insert occasionally into hash. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue