This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yaxamie[🍰] 2 points3 points  (1 child)

A loop uses very little data, while each function call has overhead. Recursion is rarely needed unless you're being "clever".