hang and/or deep circular dependencies in rare cases
gen2thomas opened this issue · comments
Thomas Kohler commented
For one of my projects the call takes quite long and increase over the time CPU and memory usage.
A first investigation shows, that:
- there are items with up to 125 children in this project, so maybe a special one
- the same branch will be repeated more than once at deeper levels, but there are no direct circular dependencies
- the problem do not occur for maxDepth <= 5 (code change)
Same branches at deeper levels results to a complex/redundant tree and can cause hard to catch circular dependencies. So the first idea is to replace duplicates by a text link (e.g. "for child tree see 'foo v1.0.0' at branch 'bar v2.3.4' level 3"). This behavior should be switchable by a CLI parameter.