[svn:parrot] r48419 - trunk/src
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Wed Aug 11 20:25:46 UTC 2010
Author: chromatic
Date: Wed Aug 11 20:25:46 2010
New Revision: 48419
URL: https://trac.parrot.org/parrot/changeset/48419
Log:
[hash] Added another STRING hashing optimization.
This offers a modest improvement to the Rakudo startup benchmark.
Modified:
trunk/src/hash.c
Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c Wed Aug 11 20:20:52 2010 (r48418)
+++ trunk/src/hash.c Wed Aug 11 20:25:46 2010 (r48419)
@@ -182,6 +182,7 @@
const STRING * const s = (const STRING *)key;
if (s->hashval)
return s->hashval;
+ return Parrot_str_to_hashval(interp, s);
}
return (hash->hash_val)(interp, key, hash->seed);
More information about the parrot-commits
mailing list