Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Commons JSON 2.0.16
-
None
Description
ResourceTraversor.collectChildren is unnecessarily using recursion and causes stack overflows for flat trees.
Example: for a node with 10k direct children it adds 10k calls on the stack. This should be implemented in an iterative way or at most it should do recursion only for the tree depth.