Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Re: Pure Perl tail call optimizationby TimToady (Parson) |
on Mar 05, 2004 at 20:02 UTC ( [id://334343]=note: print w/replies, xml ) | Need Help?? |
Um, goto &SUB does create a new stack frame, but only after the old one is stripped off. (Shouldn't leak memory though.)
And goto LABEL doesn't do a linear search through the source file. And the way the (non-linear) search is written, going from the last statement to a label at the beginning should be pretty fast. Benchmarks are the only way to tell which will be faster.
In Section
Meditations
|
|