in reply to Re: Why is goto &sub slow?
in thread Why is goto &sub slow?
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Why is goto &sub slow?
by dragonchild (Archbishop) on Mar 30, 2004 at 02:02 UTC | |
And, the benchmarking goes something like:
In other words, my tail-call is 90k/second, straight recursion is 70k/second, but my straight recursion is 105k/second. The regular tail-call are in the 25-30k/second. I lose about 10% going from recursion to tail-call. Now, when I shift from factorial(5) to factorial(15) and factorial(25), the benchmarking looks something like:
I have no idea why my recursion is still beating my tail-call. The ratio is mostly staying the same, at least between my versions. At 80, this is what happens:
I'm not sure what all those numbers really mean, but there they are. :-) ------
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose | [reply] [d/l] [select] |