On Dec 10, 2005, at 16:12, Leopold Toetsch wrote:

I've now checked in ack.pir and ack.py into examples/benchmarks. And I've timed Ack(3, 9) with an optimized Parrot build:

Python      13.7
Parrot -j   15.3
Parrot -C   13.8

With recent parrot (r10436) and mostly due to this patch ...

$ diff ack0.pir ack.pir
39c39,40
<       .return ack($I1, 1)
---
>       $I0 = 1
>       .return ack($I1, $I0)

... i.e. using the same call signature for all ack() calls, I'm now at:

Parrot -C   9.0  secs

Getting a similar optimization into Parrot itself is a bit beyond current goals (albeit simple), but the numbers are indicating that the new calling conventions are a lot faster than old.

leo

Reply via email to