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