Avoid auto-selection variable chunking for buffer sizes below threshold.
This commit is contained in:
parent
9d40f3c2fb
commit
c15957b990
1 changed files with 4 additions and 2 deletions
|
@ -3288,8 +3288,10 @@ init_pc_context(pc_ctx_t *pctx, int argc, char *argv[])
|
||||||
if (pctx->level > 3) {
|
if (pctx->level > 3) {
|
||||||
if (pctx->chunksize >= RAB_MIN_CHUNK_SIZE_GLOBAL)
|
if (pctx->chunksize >= RAB_MIN_CHUNK_SIZE_GLOBAL)
|
||||||
pctx->enable_rabin_global = 1;
|
pctx->enable_rabin_global = 1;
|
||||||
pctx->enable_rabin_scan = 1;
|
if (pctx->chunksize >= RAB_MIN_CHUNK_SIZE) {
|
||||||
pctx->enable_rabin_split = 1;
|
pctx->enable_rabin_scan = 1;
|
||||||
|
pctx->enable_rabin_split = 1;
|
||||||
|
}
|
||||||
pctx->rab_blk_size = 2;
|
pctx->rab_blk_size = 2;
|
||||||
if (pctx->level > 5) pctx->rab_blk_size = 1;
|
if (pctx->level > 5) pctx->rab_blk_size = 1;
|
||||||
if (pctx->level > 8) pctx->rab_blk_size = 0;
|
if (pctx->level > 8) pctx->rab_blk_size = 0;
|
||||||
|
|
Loading…
Reference in a new issue