in reply to Re: Why is goto &sub slow?
in thread Why is goto &sub slow?
broquaint, if I understand Your example, there is a typo in sub _fact0, it should return
That makes recursion 1 twice as fast as recursion 2return _fact0(($result * $counter), ($counter + 1), $max);
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)
|
|---|