On Mar 25, 2011, at 5:46 PM, Camillo Bruni wrote:
>> 
> 
> Arguing with absolute values is a bit dangerous:
> 
> But it makes 
> 13ms / 17ms * 100% = 76% => 25% speed improvement! in COG
> 50ms / 60ms * 100% = 83% => 17% faster
> 
> So the impact is still quite big. But indeed I would be in favor of a normal 
> message send...
> 

And are you sure that your Doit is actually JITed in Cog?

1) always take the overhead of the loop into acount. Especially if it is a 
large percentage, it
can make you "slowdown" seem very small even though it is huge.
e.g. the overhead of the loop in your case should be *very* high. 90% of the 
execution time?

2) always make sure that you actually JIT.
        -> put it in a normal method in a class
        -> execute it at least 2 times


Marcus


--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.


Reply via email to