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

Performance issues with large amounts of nodes #125

Open
gruberroland opened this issue Mar 4, 2025 · 1 comment
Open

Performance issues with large amounts of nodes #125

gruberroland opened this issue Mar 4, 2025 · 1 comment

Comments

@gruberroland
Copy link
Contributor

Describe the bug
When expanding a node that has a large set of subnodes then it takes very long to load.

To Reproduce
Create a node with 10,000 subnodes and try to expand it.

Expected behavior
Optimize code to reduce the loading time.

Desktop (please complete the following information):

  • OS: Linux
  • Browser Firefox, Chromium

Additional context

It seems to be related to the resize handler. This is where my JS skills are not good enough to dig deeper.

this.resizeObserver = new ResizeObserver((entries) => {

Image

@gruberroland gruberroland added bug Something isn't working need-triage labels Mar 4, 2025
@mar10 mar10 removed the bug Something isn't working label Mar 4, 2025
@mar10
Copy link
Owner

mar10 commented Mar 4, 2025

This example has about 100.000 nodes and expands fast (click this button: Image).
Maybe try giving the tree div a fixed size. Can you share some example code to reproduce it?

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

No branches or pull requests

2 participants