in reply to Re^3: Sorting, recursion, and tail-call optimizations
in thread Sorting, recursion, and tail-call optimizations

Roy Johnson,
It is a shame that Perl doesn't benefit from this optimization then. In other languages, the optimization would involve re-using the same stack-frame with no pushing and popping required. In addition to the thread I already mentioned, this external article was also interesting.

Cheers - L~R

  • Comment on Re^4: Sorting, recursion, and tail-call optimizations