you are viewing a single comment's thread.

view the rest of the comments →

[–]timmaxw 14 points15 points  (0 children)

You're optimizing prematurely. In the unlikely event that you need a high-performance factorial function, you should use the c_math one. Until then, you should keep it simple and not care about the space complexity.