From 9d40f3c2fb2c872eb80697285dbbcbe6f5fddf2b Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Sat, 22 Feb 2014 23:34:26 +0530 Subject: [PATCH] Do not auto-select Global Dedupe for below threshold buffers. --- pcompress.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcompress.c b/pcompress.c index 70a4f65..025f9d5 100644 --- a/pcompress.c +++ b/pcompress.c @@ -3286,7 +3286,8 @@ init_pc_context(pc_ctx_t *pctx, int argc, char *argv[]) if (pctx->level > 4) pctx->enable_delta2_encode = 1; if (pctx->level > 9) pctx->lzp_preprocess = 1; if (pctx->level > 3) { - pctx->enable_rabin_global = 1; + if (pctx->chunksize >= RAB_MIN_CHUNK_SIZE_GLOBAL) + pctx->enable_rabin_global = 1; pctx->enable_rabin_scan = 1; pctx->enable_rabin_split = 1; pctx->rab_blk_size = 2;