3 ms·
Tail Call Optimization is an optimization done by the compile/vm that replace (in assembly terms) a CALL by a JMP. Therefore removing a call stack.
by bad_login 7y ago
Tail Call Optimization is an optimization done by the compile/vm that replace (in assembly terms) a CALL by a JMP.
Therefore removing a call stack.
- sb8244 7y agoCorrect. BEAM does real TCO as far as I'm aware. LYSE has a blurb about it and seems to agree (https://learnyousomeerlang.com/recursion https://learnyousomeerlang.com/recursion).