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
Tree with 20k+ nested nodes #83
Comments
I dont know if that option is still available. The link from that SO answer is not pointing to something called "progressive_render". I also couldnt find it in the source code of jsTree. |
@trafficonese Yes, there seems to be an issue with the link. I have no additional information on progressive render other than this this github link shared in this question . Another thing I'd like to suggest is to implement lazy loading in shinyTree, i.e. only child nodes of a parent are shown at a time and server renders more nodes when called. |
I think There is only HTML for the nodes that are visible and as soon as you open a node, new HTML will be inserted in the body. But the R code does not care if the node is visible or not, it will always go through all list elements (in This function could definitly be optimized and maybe exported to C++, but maybe you're better of forking the package and creating an optimized and customized You might also consider switching from Little example to play around, which is already quite slow for 8000 total nodes (20 root nodes, 200 sub-nodes and 2 sub-sub-nodes):
|
I made a gist with 2 optimized functions and some benchmarking. Here's the benchmark result:
And you might also try out
@schaffman5, @bellma-lilly: Could we switch to |
Hi,
I'm trying to create a searchable tree with 24k nested nodes but it takes forever for the tree to be rendered. I tried using a subset of the nodes (1.3k) and it took 10 secs to render. I have the contents in form of a list of lists. Here is the code:
Here, is the file which contains the list for each subcategroy. GOlist.zip
I'd like something like this but to be able to render 24k nodes.
I understand the packages uses
jsTree
in the background and after searching online I came acrossprogressive_render
https://stackoverflow.com/questions/13509542/jstree-rendering-optimization-very-long-rendering-with-2000-nodesI was wondering if anyone can help me use progressive_render in with shinyTree.
Thanks!
The text was updated successfully, but these errors were encountered: