rien: I guess something was lost in translation then 
Sure, creating your own stack has its own sets of problems, and it’s not suitable to replace all usages of recursion. It’s often a good idea, though. I’d say that using a stack instead of recursion is not so much “handcrafted optimization” as it is “avoiding expensive patterns where they are not needed” 