2 ms·
> The exact same argument could be made for any compile-time optimization. No. For other optimization, the difference is the speed of execution. For tail call
by netheril96 4y ago
> The exact same argument could be made for any compile-time optimization.
No.
For other optimization, the difference is the speed of execution. For tail call optimization, the difference can be normal execution and stack overflow.
- MereInterest 4y agoAny optimization that removes an unnecessary stack allocation could also be the difference between normal execution and stack overflow, due to decreasing the size of the stack frame.
- netheril96 4y agoBut the effect is much more likely in tail recursive cases.