Skip to content

Commit

Permalink
Avoid auto-selection variable chunking for buffer sizes below threshold.
Browse files Browse the repository at this point in the history
  • Loading branch information
moinakg committed Mar 2, 2014
1 parent 9d40f3c commit c15957b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pcompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -3288,8 +3288,10 @@ init_pc_context(pc_ctx_t *pctx, int argc, char *argv[])
if (pctx->level > 3) {
if (pctx->chunksize >= RAB_MIN_CHUNK_SIZE_GLOBAL)
pctx->enable_rabin_global = 1;
pctx->enable_rabin_scan = 1;
pctx->enable_rabin_split = 1;
if (pctx->chunksize >= RAB_MIN_CHUNK_SIZE) {
pctx->enable_rabin_scan = 1;
pctx->enable_rabin_split = 1;
}
pctx->rab_blk_size = 2;
if (pctx->level > 5) pctx->rab_blk_size = 1;
if (pctx->level > 8) pctx->rab_blk_size = 0;
Expand Down

0 comments on commit c15957b

Please sign in to comment.