[svn:parrot] r48318 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Wed Aug 4 16:30:10 UTC 2010


Author: chromatic
Date: Wed Aug  4 16:30:09 2010
New Revision: 48318
URL: https://trac.parrot.org/parrot/changeset/48318

Log:
[hash] Doubled initial hash size to 8 buckets.

This reduces resizing for hashes of 8 or fewer buckets: most of them.

Modified:
   trunk/src/hash.c

Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	Wed Aug  4 14:36:53 2010	(r48317)
+++ trunk/src/hash.c	Wed Aug  4 16:30:09 2010	(r48318)
@@ -30,7 +30,7 @@
 /* the number of entries above which it's faster to hash the hashval instead of
  * looping over the used HashBuckets directly */
 #define SMALL_HASH_SIZE  4
-#define INITIAL_BUCKETS  4
+#define INITIAL_BUCKETS  8
 
 /* HEADERIZER HFILE: include/parrot/hash.h */
 


More information about the parrot-commits mailing list