summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-28 21:12:58 +0200
committerJustus Winter <justus@gnupg.org>2016-04-29 23:18:34 +0200
commit9d29cfbf9fd8a0e26a3410194d1a060114973ad2 (patch)
treee71eb460c445d9a3ae4cf70ecf87b48cf283e604 /trans
parent39031d37fd82c119b4b16af256a8ceae5d8c6ea8 (diff)
libihash: rehash if effective load exceeds the threshold
Previously, if a hash table was not growing anymore but entries were regularly replaced, the tombstones would accumulate slowing down lookups and insertions. A possible solution is to rehash the table if the effective load exceeds the configured threshold. The effective load also takes tombstones into account. * libihash/ihash.c (hurd_ihash_locp_add): Use the effective load. (hurd_ihash_add): Likewise. Use the load to decide whether we want to enlarge the table, otherwise we merely rehash.
Diffstat (limited to 'trans')
0 files changed, 0 insertions, 0 deletions