-----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             e...@byu.net
-----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-----
>From ab371610080e917974422a15862bac38b4af0e86 Mon Sep 17 00:00:00 2001
From: Eric Blake <e...@byu.net>
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 <e...@byu.net>
---
 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  <e...@byu.net>
+
+       Stress test hash resizing.
+       * doc/m4.texinfo (Define): Add new test.
+
 2009-06-15  Eric Blake  <e...@byu.net>

        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

_______________________________________________
M4-patches mailing list
M4-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/m4-patches

Reply via email to