Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API "getAllCollapsedChildrenRecursively" is very slow #115

Open
bensonnw opened this issue Oct 22, 2020 · 0 comments
Open

API "getAllCollapsedChildrenRecursively" is very slow #115

bensonnw opened this issue Oct 22, 2020 · 0 comments

Comments

@bensonnw
Copy link

Our collapsed compound nodes contain a lot of sub-nodes, when calling API getAllCollapsedChildrenRecursively, it takes more than 30 seconds to return. The following code (expandCollapseUtilities.getCollapsedChildrenRecursively) inside a For loop is very expensive:

collapsedChildren = collapsedChildren.union(children[i]);

Remove it and do "collapsedChildren = collapsedChildren.union(children);" outside of the loop is much faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant