Will Coleda wrote:
On Tue, Aug 26, 2008 at 10:53 AM, luben <[EMAIL PROTECTED]> wrote:
Is this on purpose? The implicit return is 4-5 times faster than explicit
return.

Best regards
luben


CC'ing perl6-compiler (where rakudo-particular items should go), and
wondering if you can attach the generated PIR for those of us who are
interested but unwilling at the moment to sync up and try this out.

Thanks. ^_^


In order to measure the performance difference I am using a dumb Fibonacci numbers calculation:

sub fib ( $n ){
    ($n < 2)?? $n !! fib($n-1)+fib($n-2);
}

say(fib(22));

some measurmens:
NQP explicit return  : 2.686s
NQP implicit return  : 0.555s
perl6 explicit return: 18.518s
perl6 implicit return: 4.768s

luben

Reply via email to