[EMAIL PROTECTED] (Peter Gibbs) writes: > On my machine, CVS parrot completes the above in > an elapsed time of 13 minutes; grey takes 14 seconds. > Changing the iteration count to 25000 takes 1 second > with grey versus 46 seconds for CVS.
That's great, but what impact does it have on access to individual elements? If you're not careful, you may find that accessing stuff in the array gets quite seriously slower. Linked lists being O(n) access and all that... What other differences are there between grey and CVS? For me, this says that the CVS's main despatch loop, the PMC infrastructure and most of the GC is pretty tight and most of the slowdowns are in the actual PMCs themselves. So, two suggestions: Put another loop in, which sets I1 to every array element in turn, (maybe make this an inner loop which runs each time you extend) and re-benchmark. Throw gprof at both of the builds and look at the differences. -- "On a normal ascii line, the only safe condition to detect is a 'BREAK' - everything else having been assigned functions by Gnu EMACS." (By Tarl Neustaedter)