[svn:parrot] r48276 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Tue Aug 3 05:31:38 UTC 2010


Author: chromatic
Date: Tue Aug  3 05:31:38 2010
New Revision: 48276
URL: https://trac.parrot.org/parrot/changeset/48276

Log:
[hash] Added more get_hash_val().
This improves Rakudo startup by 0.391%.

Modified:
   trunk/src/hash.c

Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	Tue Aug  3 05:31:35 2010	(r48275)
+++ trunk/src/hash.c	Tue Aug  3 05:31:38 2010	(r48276)
@@ -1291,7 +1291,7 @@
 
     /* if the fast search didn't work, try the normal hashing search */
     {
-        const UINTVAL hashval = (hash->hash_val)(interp, key, hash->seed);
+        const UINTVAL hashval = get_hash_val(interp, hash, key);
         HashBucket   *bucket  = hash->bucket_indices[hashval & hash->mask];
 
         while (bucket) {


More information about the parrot-commits mailing list