in reply to Re^11: Specializing Functions with Currying
in thread Specializing Functions with Currying
I am not sure what you are trying to prove with this benchmark. Of course factorial_r_extra will take longer, it creates my $x = "blah" x 100 5,000,000 times, as opposed to factorial_i_extra which only creates it 100,000 times. That proves nothing about the inefficiency of recursion in perl, only that it takes longer to do something 50 times more, which is true regardless of whether you use iteration or recursion.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^13: Specializing Functions with Currying
by itub (Priest) on Aug 07, 2004 at 02:35 UTC | |
by stvn (Monsignor) on Aug 07, 2004 at 03:11 UTC | |
by diotalevi (Canon) on Aug 07, 2004 at 03:23 UTC |