]> git.ipfire.org Git - thirdparty/bind9.git/commit
Increase catalog zone entries hash table's bits size
authorAram Sargsyan <aram@isc.org>
Wed, 11 Jan 2023 17:23:21 +0000 (17:23 +0000)
committerAram Sargsyan <aram@isc.org>
Wed, 11 Jan 2023 17:26:26 +0000 (17:26 +0000)
commit60dece8277a61d65d46a8da1dd93ac3a15c823fe
treef69450d1a819bdac8c1f92718ecda384ea4b336f
parent5823dacba830d134d79b92518151128c8cea1272
Increase catalog zone entries hash table's bits size

The hash table implementation in the current branch does not
support automatic resize operation, so the initial value of
the table should be chosen carefully.

Catalog zones entries hash table's size is currently only 4 bits,
which is very low for a catalog zone with thousands of entries,
and causes CPU consumption spikes when working with the hash
table to add/delete/search entries.

Use 16 bits instead, which should make working with big catalog
zones much faster at the expense of slightly higher memory usage,
i.e. 512 KiB for a 64-bit system for each catalog zone.
lib/dns/catz.c