[svn:parrot] r39227 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Thu May 28 20:45:22 UTC 2009


Author: chromatic
Date: Thu May 28 20:45:21 2009
New Revision: 39227
URL: https://trac.parrot.org/parrot/changeset/39227

Log:
[GC] Removed a manual GC run from run_thaw().  When loading a lot of PBC files,
this is just busy work that rarely finds any PObjs to recycle.  (If we had a
generational GC, that would be more appropriate here.)  Deleting this line
improves Rakudo startup by 6.06% and the 10k subs benchmark by 7.12%.

Modified:
   trunk/src/pmc_freeze.c

Modified: trunk/src/pmc_freeze.c
==============================================================================
--- trunk/src/pmc_freeze.c	Thu May 28 20:14:01 2009	(r39226)
+++ trunk/src/pmc_freeze.c	Thu May 28 20:45:21 2009	(r39227)
@@ -1759,7 +1759,6 @@
      * collected under us.
      */
     if (1 || (Parrot_str_byte_length(interp, image) > THAW_BLOCK_GC_SIZE)) {
-        Parrot_gc_mark_and_sweep(interp, 1);
         Parrot_block_GC_mark(interp);
         Parrot_block_GC_sweep(interp);
         gc_block = 1;


More information about the parrot-commits mailing list