From 6d97ed71b7d287f9230ca38eb2183aed7874e65a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 15 Mar 1999 15:50:55 +0000 Subject: *** empty log message *** --- old/fileutils/ChangeLog | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'old/fileutils/ChangeLog') diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 2c555164a..7ffe81a47 100644 --- a/old/fileutils/ChangeLog +++ b/old/fileutils/ChangeLog @@ -1,3 +1,27 @@ +1999-03-15 Jim Meyering + + Revamp to allow fine-tuning to control when and by how + much the table grows and shrinks. + * lib/hash.c (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.h (struct hash_tuning): Define. + (struct hash_table) [tuning]: Add member. + (hash_initialize): Add `tuning' parameter. + + * lib/hash.c (hash_insert): Remove last parameter and change semantics. + * lib/hash.h (hash_insert): Update prototype. + + * lib/hash.c (hash_insert): Don't increment n_entries unconditionally -- + otherwise, we'd do so even when the insertion failed. + From François Pinard. + 1999-03-07 Jim Meyering * lib/xmalloc.c (xalloc_fail): Use "%s" format so the message doesn't -- cgit v1.2.3-70-g09d2