hash test

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I found a performance bug in gnulib's hash module:
http://article.gmane.org/gmane.comp.lib.gnulib.bugs/17875

So I'm committing this, to make it easier to repeat the test.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko5P00ACgkQ84KuGfSFAYC6yQCgp2I96Dl/MsPFRycZ2d3kStlv
l4gAoIoniWB1IojS5E6KWMkhMjz1Vtgw
=tjlw
-----END PGP SIGNATURE-----

_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches
m4.patch422 (text/plain, 1.3 KB)
From ab371610080e917974422a15862bac38b4af0e86 Mon Sep 17 00:00:00 2001
From: Eric Blake <[email protected]>
Date: Wed, 17 Jun 2009 13:08:22 -0600
Subject: [PATCH] Stress test hash resizing.

* doc/m4.texinfo (Define): Add new test.

Signed-off-by: Eric Blake <[email protected]>
---
 ChangeLog      |    5 +++++
 doc/m4.texinfo |   19 +++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c9169f4..1dfe21a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-17  Eric Blake  <[email protected]>
+
+	Stress test hash resizing.
+	* doc/m4.texinfo (Define): Add new test.
+
 2009-06-15  Eric Blake  <[email protected]>

 	Properly manage hash return values.
diff --git a/doc/m4.texinfo b/doc/m4.texinfo
index d18d4b0..60d9c59 100644
--- a/doc/m4.texinfo
+++ b/doc/m4.texinfo
@@ -1921,6 +1921,25 @@ Define

 Change the @samp{%d} to @samp{%s} and it is an associative array.

+@ignore
+@comment Stress test for hash resizing.
+
+@comment examples
+@example
+$ @kbd{m4 -I examples}
+include(`forloop3.m4')
+@result{}
+forloop(`i', `1', `10000', `define(`m'i, i)')
+@result{}
+m10000
+@result{}10000
+forloop(`i', `1', `10000', `undefine(`m'i, i)')
+@result{}
+m10000
+@result{}m10000
+@end example
+@end ignore
+
 @node Arguments
 @section Arguments to macros

-- 
1.6.3.rc3.2.g4b51
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.