Revamp to allow fine-tuning to control when and by how
authorJim Meyering <jim@meyering.net>
Mon, 15 Mar 1999 15:50:31 +0000 (15:50 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 15 Mar 1999 15:50:31 +0000 (15:50 +0000)
commit0a1a14a0958643bc5dabc2d0b0901dca08fca722
tree2d4589b6aad75188449a745799487f488427a00a
parent674d2ec393f69b015b3ff80343a431b81f94322f
Revamp to allow fine-tuning to control when and by how
much the table grows and shrinks.
(next_prime): Don't assert.
(hash_reset_tuning): New function.
(check_tuning): New function.
(hash_initialize): Accept and use new tuning parameter.
(hash_rehash): Rewrite, updating for tuning.
(hash_insert): Honor tuning semantics.
(hash_delete): Likewise.
From François Pinard.
lib/hash.c