summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-03-15 15:50:55 +0000
committerJim Meyering <jim@meyering.net>1999-03-15 15:50:55 +0000
commit6d97ed71b7d287f9230ca38eb2183aed7874e65a (patch)
treedb9f6270dd02d17141e0304a42ab95097cba872c /old
parent0a1a14a0958643bc5dabc2d0b0901dca08fca722 (diff)
downloadcoreutils-6d97ed71b7d287f9230ca38eb2183aed7874e65a.tar.xz
*** empty log message ***
Diffstat (limited to 'old')
-rw-r--r--old/fileutils/ChangeLog24
1 files changed, 24 insertions, 0 deletions
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 <meyering@ascend.com>
+
+ 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 <meyering@ascend.com>
* lib/xmalloc.c (xalloc_fail): Use "%s" format so the message doesn't