bind9/bin/tests
Ondřej Surý 8c31a939c9
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.

(cherry picked from commit e42cb1f198)
2023-01-11 17:15:33 +01:00
..
startperf Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
system Implement incremental hash table resizing in isc_ht 2023-01-11 17:15:33 +01:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:12:47 -08:00
.gitignore Refactor TLSDNS module to work with libuv/ssl directly 2021-01-25 09:19:22 +01:00
convert-trs-to-junit.py Auto-format Python files with black 2022-06-08 13:18:27 +02:00
Makefile.am Fix JUnit test status generator for out-of-tree system tests 2022-09-22 16:17:25 +02:00
test_client.c DoT: implement TLS client session resumption 2022-06-15 17:02:45 +03:00
test_server.c Rename yield() to the test_server_yield() 2022-04-27 20:13:24 +03:00
wire_test.c Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00