4 ms·
People might want to use recursion. They might want to split out their code into small functions without having to think about the overhead of function calls. T
by kristofferc 9y ago
People might want to use recursion. They might want to split out their code into small functions without having to think about the overhead of function calls. They might want to just write a for loop instead of transforming it to vectorized notation.
The benchmark investigated in the link answers the question "if I use recursion, and the function body is small, how much will I be penalized?". Changing the benchmark so that it no longer answers that question makes it pointless.