I always do not like recursion. I will definitely use iteration if there is a way to use it instead of recursion. No theory. I just do not like recursion naturally.
Today the article I read tells that the performance of iteration is much better than recursion. Performance here includes both speed and memory usage. Here is the link http://www.codeproject.com/KB/recipes/Iterative_vs_Recursive.aspx so I will confidently continue to use iteration instead of recursion in my daily work.
No comments:
Post a Comment