Merge pull request #4459 from ThomasWaldmann/fix-2830

add comment about hashtable sizes, fixes #2830
This commit is contained in:
TW 2019-03-20 22:50:38 +01:00 committed by GitHub
commit 82b11d6b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ typedef struct {
* more and more down to 1.1x. this is to avoid huge jumps in memory allocation, * more and more down to 1.1x. this is to avoid huge jumps in memory allocation,
* like e.g. 4G -> 8G. * like e.g. 4G -> 8G.
* these values are generated by hash_sizes.py. * 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[] = { static int hash_sizes[] = {
1031, 2053, 4099, 8209, 16411, 32771, 65537, 131101, 262147, 445649, 1031, 2053, 4099, 8209, 16411, 32771, 65537, 131101, 262147, 445649,