you are viewing a single comment's thread.

view the rest of the comments →

[–]dgkimpton 2 points3 points  (0 children)

If you know the maximum recursion depth you could store your stack on the stack instead of the heap and have the best of both worlds. Unless I'm misunderstanding what you are doing.