From 7e7ea69e92c2e7a443ad1777baed5e1bb9a527a6 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 20 Mar 2019 14:35:05 +0100 Subject: [PATCH] add comment about hashtable sizes, fixes #2830 --- src/borg/_hashindex.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/borg/_hashindex.c b/src/borg/_hashindex.c index 7bf326cbf..799fbcd4b 100644 --- a/src/borg/_hashindex.c +++ b/src/borg/_hashindex.c @@ -67,6 +67,11 @@ typedef struct { * more and more down to 1.1x. this is to avoid huge jumps in memory allocation, * like e.g. 4G -> 8G. * these values are generated by hash_sizes.py. + * + * update: no, we don't need primes or w/ big prime factors, we followed some + * incomplete / irrelevant advice here that did not match our use case. + * otoh, for now, we do not need to change the sizes as they do no harm. + * see ticket #2830. */ static int hash_sizes[] = { 1031, 2053, 4099, 8209, 16411, 32771, 65537, 131101, 262147, 445649,