Paolo Molaro wrote:

> On 03/21/04 Jarkko Hietaniemi wrote:
> [...]
> 
>>>oofib   100%    144%    132%    240%    212%    140%    136%
> 
> [...]
> 
>>That being said, people more conversant than me in Python/Ruby
>>(or Parrot) are welcome to carefully compare the scripts to verify that
>>the scripts really do implement the same tasks.
> 
> 
> oofib.imc seems to use int registers for the arguments and the
> calculations, though at least the perl code uses scalars (of course).
> So, while that tells us that using typed integer registers makes for
> faster code, the equivalent code should be using PerlInt PMCs, I think.

I am innocent of oofib.* :-)  I just created the oo[34].{pl,py,rb,pasm}
today, and Leo did the oo[56].{pasm,imc}.  But yes, that was a clear and
dangerous temptation, thinking of using the integer registers for the
oo[34].pasm instead of PerlInts.  I also note that doing a getattribute
is of course not doing as much work as getattribute AND then binding
that result to a lexical variable.

Reply via email to