Through some heroic work by Steve Fink, Jeff Goff, and Melvin Smith, amongst others, Parrot now has working arrays, hashes, and in a little while, a global symbol table. This is very keen.
Re:Performance
Elian on 2002-05-18T16:28:22
There's some numbers in the May issue of The Perl Review. Off the top of my head, for equivalent things we see about a 4-5x speed increase over perl 5. (In trivial cases, with the JIT, we can see up to a 238x speed increase, but I wouldn't count on that for many things...:) Not counting regexes, where perl 5's Engine of Ultimate Evil wipes the floor with us. We're working on that, though. Re:Performance
Matts on 2002-05-18T18:22:38
I meant specifically for hash and array access, setting, extending, etc. I've seen the overall performance figures for Parrot before.Re:Performance
Elian on 2002-05-18T22:44:30
Those numbers I don't have yet. This is just first cut stuff, and there's not been any tuning of, well, anything. (Though the numbers could be really good for all I know...)Re:Performance
Elian on 2002-05-22T18:52:52
Ran a quick test for hash times. Fetch only, this:
$i = 1_000_000;
do {
$i--;
$bar = $foo{'foo'};
} while ($i);
takes 2.21 sec usertime for perl 5, 1.4 sec usertime for parrot. The code needs some optimization still, as it's a bit slower than I'd like, but it's not bad for a first go.Re:Performance
Matts on 2002-05-22T21:12:05
Nice job.
I assume that's also without JIT? And JIT would speed up the loop, I suspect.Re:Performance
Elian on 2002-05-22T22:22:23
Yup, that's without the JIT, since we don't yet have one for OS X. While the JIT may speed things up, my bet is it won't speed things up that much given that about 90% of the time for Parrot's spent in the hash variable's vtable. I'd expect some reworking of the hash code to be where the bigger win would be.