[svn:parrot] r48242 - trunk/runtime/parrot/library

coke at svn.parrot.org coke at svn.parrot.org
Sat Jul 31 19:23:16 UTC 2010


Author: coke
Date: Sat Jul 31 19:23:15 2010
New Revision: 48242
URL: https://trac.parrot.org/parrot/changeset/48242

Log:
Avoid creating a PMC here, rely on autoboxing instead.
Definite speedup in simple Rakudo benchmark. (.61s to .56s)
all tests pass in rakudo & parrot.

Modified:
   trunk/runtime/parrot/library/P6object.pir

Modified: trunk/runtime/parrot/library/P6object.pir
==============================================================================
--- trunk/runtime/parrot/library/P6object.pir	Sat Jul 31 18:43:43 2010	(r48241)
+++ trunk/runtime/parrot/library/P6object.pir	Sat Jul 31 19:23:15 2010	(r48242)
@@ -818,9 +818,7 @@
     $I0 = 1
 
   end:
-    $P0 = new ['Boolean']
-    assign $P0, $I0
-    .return ($P0)
+    .return ($I0)
 .end
 
 


More information about the parrot-commits mailing list