7

Apparently, calling a function recursively for 18572 times isn't a great idea.

And apparently, too many log statements can stop a script.

Otherwise, I am getting a stackoverflow error if I remove log statements.

Comments
  • 0
    This sounds very suspicious. Language? Maybe you have a race conditions? Log statements are frequently a synchronization point.
  • 0
    And yes, unless your language supports tail recursion AND you function is tail recursive, you will have a bad time I'd you nest the calls beyond the stack size
Add Comment