Adjust break pattern check mask for closer approximation to average block size.

Remove unused structure member.
This commit is contained in:
Moinak Ghosh 2012-09-29 23:31:45 +05:30
parent 24e6f4e629
commit 0019efbadb
3 changed files with 3 additions and 3 deletions

View file

@ -3,6 +3,8 @@ Pcompress
Copyright (C) 2012 Moinak Ghosh. All rights reserved.
Use is subject to license terms.
moinakg (_at) gma1l _dot com.
Comments, suggestions, code, rants etc are welcome.
Pcompress is a utility to do compression and decompression in parallel by
splitting input data into chunks. It has a modular structure and includes

View file

@ -178,9 +178,8 @@ create_dedupe_context(uint64_t chunksize, uint64_t real_chunksize, int rab_blk_s
ctx->fixed_flag = fixed_flag;
ctx->rabin_break_patt = 0;
ctx->rabin_poly_avg_block_size = 1 << (rab_blk_sz + RAB_BLK_MIN_BITS);
ctx->rabin_avg_block_mask = ctx->rabin_poly_avg_block_size - 1;
ctx->rabin_avg_block_mask = ((ctx->rabin_poly_avg_block_size - 1) >> 1);
ctx->rabin_poly_min_block_size = dedupe_min_blksz(rab_blk_sz);
ctx->fp_mask = ctx->rabin_avg_block_mask | ctx->rabin_poly_avg_block_size;
ctx->delta_flag = 0;
/*

View file

@ -153,7 +153,6 @@ typedef struct {
uint32_t rabin_poly_min_block_size;
uint32_t rabin_poly_avg_block_size;
uint32_t rabin_avg_block_mask;
uint32_t fp_mask;
uint32_t rabin_break_patt;
uint64_t real_chunksize;
short valid;