3 ms·
How many of those other optimizations reduce stack usage from O(n) to O(1)?
by chongli 2y ago
How many of those other optimizations reduce stack usage from O(n) to O(1)?
- BoiledCabbage 2y agoThat's irrelevant - your assertion was that a change that changes semantics by preventing stack overflow cannot be called an optimization. The commenter showed that is false, and gave reasons why. Whether tail call goes from O(n) to O(1) doesn't change any of the above.