bind9/lib
Ondřej Surý e42cb1f198 Implement incremental hash table resizing in isc_ht
Previously, an incremental hash table resizing was implemented for the
dns_rbt_t hash table implementation.  Using that as a base, also
implement the incremental hash table resizing also for isc_ht API
hashtables:

 1. During the resize, allocate the new hash table, but keep the old
    table unchanged.
 2. In each lookup, delete, or iterator operation, check both tables.
 3. Perform insertion operations only in the new table.
 4. At each insertion also move <r> elements from the old table to
    the new table.
 5. When all elements are removed from the old table, deallocate it.

To ensure that the old table is completely copied over before the new
table itself needs to be enlarged, it is necessary to increase the
size of the table by a factor of at least (<r> + 1)/<r> during resizing.

In our implementation <r> is equal to 1.

The downside of this approach is that the old table and the new table
could stay in memory for longer when there are no new insertions into
the hash table for prolonged periods of time as the incremental
rehashing happens only during the insertions.
2022-03-17 08:16:24 +01:00
..
bind9 Remove the keep-response-order ACL map 2022-02-18 09:16:03 +01:00
dns Check if the fetch is shutting down in resume_dslookup() 2022-03-16 22:11:49 +01:00
irs Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc Implement incremental hash table resizing in isc_ht 2022-03-17 08:16:24 +01:00
isccc Use ISC_R_SHUTTINGDOWN to detect netmgr shutting down 2022-01-13 09:14:12 +01:00
isccfg Check dnssec-policy key roles for validity 2022-03-08 13:23:14 +11:00
ns Remove usage of deprecated ATOMIC_VAR_INIT() macro 2022-03-08 23:55:10 +01:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00
unit-test-driver.sh.in Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00