From 2624d6f81858edef821363526b15614960cba736 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 9 Aug 2016 20:30:50 +0200 Subject: [PATCH] larger item metadata stream chunks, fixes #1452 increasing the mask (target chunk size) from 14 (16kiB) to 17 (128kiB). this should reduce the amount of item metadata chunks an archive has to reference to 1/8. this does not completely fix #1452, but at least enables a 8x larger item metadata stream. --- borg/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/archive.py b/borg/archive.py index 653e2dd1c..4498c72a3 100644 --- a/borg/archive.py +++ b/borg/archive.py @@ -39,7 +39,7 @@ HASH_MASK_BITS = 21 # results in ~2MiB chunks statistically CHUNKER_PARAMS = (CHUNK_MIN_EXP, CHUNK_MAX_EXP, HASH_MASK_BITS, HASH_WINDOW_SIZE) # chunker params for the items metadata stream, finer granularity -ITEMS_CHUNKER_PARAMS = (12, 16, 14, HASH_WINDOW_SIZE) +ITEMS_CHUNKER_PARAMS = (15, 19, 17, HASH_WINDOW_SIZE) has_lchmod = hasattr(os, 'lchmod') has_lchflags = hasattr(os, 'lchflags')