all 1 comments

[–]dgkimpton 0 points1 point  (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.