P
peter koch
If you think you can recurse a 1000000 times in C or in C++,
you've got another think coming. It just won't work, at least
with the implementations I've got access to.
Well... one million times should not be a problem. This only requires
a stack of the order of 16 megabytes, which really should not be a
problem one any desktop computer today. Multiply by a factor of 100
and you would get problems. One million should be okay if you are
aware of the problem.
But in reality: Who would ever in practice need to recurse so deeply?
Even with quite complicated datastructures, I would be surprised if
even a recursion depth of 10000 would occur.
/Peter
/Peter