2 ms·
> Recursion is slow in R because R is an interpreted language, and does not implement tail-call optimization. Javascript is interpreted and doesn't have it eit
by ricardobeat 15y ago
> Recursion is slow in R because R is an interpreted language, and does not implement tail-call optimization.
Javascript is interpreted and doesn't have it either, yet it's 145x faster.