Make the buffer passed to hash checking page sized which gives a minor speedup.

This commit is contained in:
Con Kolivas 2011-02-20 12:16:45 +11:00
parent b94f68ba41
commit 4036125f94

2
rzip.c
View file

@ -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)