develooper Front page | perl.perl6.internals | Postings from February 2002

[PATCH] life.pasm (was Re: GC performance)

Thread Previous | Thread Next
From:
Bryan C. Warnock
Date:
February 28, 2002 06:50
Subject:
[PATCH] life.pasm (was Re: GC performance)
Message ID:
200202281447.g1SElDQ14009@smtp.capita.com
Creeping string length.  (You may want to verify the program actually still 
works!  :-)

Index: examples/assembly/life.pasm
===================================================================
RCS file: /home/perlcvs/parrot/examples/assembly/life.pasm,v
retrieving revision 1.6
diff -u -r1.6 life.pasm
--- examples/assembly/life.pasm 28 Feb 2002 00:27:50 -0000      1.6
+++ examples/assembly/life.pasm 28 Feb 2002 14:44:09 -0000
@@ -74,7 +74,6 @@
        pushi
        length I0, S15
        set S1, ""
-       set S1, " "
        set I1, 0
 genloop:
        set I2, 0
@@ -188,4 +187,4 @@
        restore I1
        restore I0
 dumpend:
-       ret
\ No newline at end of file
+       ret


Here're the new generation results:

Generations DOD GC
------------------------
   5     118     10
 100   2,347    204
 500  11,730  1,020
1000  23,459  2,041

You're now linear again.

-- 
Bryan C. Warnock
bwarnock@capita.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About