Maximum call stack depth (for recursive functions)
jason_bennett190
Member, Developers Posts: 17 ✭
Hi,
My experimentation seems to have bumped up against a built in limitation, so I wanted to confirm what the maximum call stack depth is for FeatureScript. From a quick check of a few values, it seems to be somewhere around 1500 recursions of a recursive function that the "Maximum call stack depth exceeded" error pops up.
What number do you have the maximum stack depth set to?
Why did you choose that particular number?
My experimentation seems to have bumped up against a built in limitation, so I wanted to confirm what the maximum call stack depth is for FeatureScript. From a quick check of a few values, it seems to be somewhere around 1500 recursions of a recursive function that the "Maximum call stack depth exceeded" error pops up.
What number do you have the maximum stack depth set to?
Why did you choose that particular number?
-1
Comments
-
The maximum call stack depth is 1024, because that is a round number much greater than any call stack we expect to see.0

