From: Jim Meyering Date: Mon, 15 Mar 1999 15:50:55 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: FILEUTILS-4_0e~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d97ed71b7d287f9230ca38eb2183aed7874e65a;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/old/fileutils/ChangeLog b/old/fileutils/ChangeLog index 2c555164ae..7ffe81a473 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