-
Notifications
You must be signed in to change notification settings - Fork 44
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
Poor performance when 50 nodes get rendered on the graph #40
Comments
Thank U again for this wonderful library which is very helpful ! Nevertheless, I have the same problem. Graph with about 100 nodes gets very slow. Any idea ? |
Maybe or set some kind of cache to avoid recomputing it all the time? |
That function gets called for the element every time there is a But yes, maybe a debounce function could help there, PRs are welcome. |
Yes, According to the source code in this lib: '_cy.on("style", updateDataOrStyleCyHandler);', 'style' event caused this issue, it always refresh html nodes by this event, if too many nodes, there will be performance issue. |
Hi there,
Thanks for writing this library. It saved me a lot of time!
I added this lib to our code recently and I'm seeing really poor performance when I have more than 50 nodes on the graph. After some profiling, I found out that the browser spent tons of time on doing https://github.com/kaluginserg/cytoscape-node-html-label/blob/master/src/cytoscape-node-html-label.ts#L311 . I'm wondering if we can do things like
debounce
to bump the performance up.I know do you probably did it on purpose. But can you explain why you put a
setTimeout
here?The text was updated successfully, but these errors were encountered: