mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Make the buffer passed to hash checking page sized which gives a minor speedup.
This commit is contained in:
parent
b94f68ba41
commit
4036125f94
1 changed files with 1 additions and 1 deletions
2
rzip.c
2
rzip.c
|
|
@ -586,7 +586,7 @@ static void hash_search(struct rzip_state *st, double pct_base, double pct_multi
|
|||
}
|
||||
|
||||
if (p > (i64)cksum_limit) {
|
||||
i64 i, n = st->chunk_size - p;
|
||||
i64 i, n = MIN(st->chunk_size - p, control.page_size);
|
||||
uchar *ckbuf = malloc(n);
|
||||
|
||||
if (!ckbuf)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue