[svn:parrot] r42605 - trunk/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri Nov 20 19:52:20 UTC 2009


Author: chromatic
Date: Fri Nov 20 19:52:19 2009
New Revision: 42605
URL: https://trac.parrot.org/parrot/changeset/42605

Log:
[PMC] Used STRINGNULL in String PMC's init() instead of a new empty STRING,
which improves performance on the NQP-rx Actions.pm benchmark by 1.45%.

Modified:
   trunk/src/pmc/string.pmc

Modified: trunk/src/pmc/string.pmc
==============================================================================
--- trunk/src/pmc/string.pmc	Fri Nov 20 19:04:09 2009	(r42604)
+++ trunk/src/pmc/string.pmc	Fri Nov 20 19:52:19 2009	(r42605)
@@ -34,7 +34,7 @@
 */
 
     VTABLE void init() {
-        STRING *str_val = Parrot_str_new_noinit(INTERP, enum_stringrep_one, 0);
+        STRING *str_val = STRINGNULL;
         SET_ATTR_str_val(INTERP, SELF, str_val);
 
         PObj_custom_mark_SET(SELF);


More information about the parrot-commits mailing list