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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TreeView] Performance issue on TreeView with large data set #10300

Open
2 tasks done
satyajitrout58 opened this issue Sep 10, 2023 · 1 comment
Open
2 tasks done

[TreeView] Performance issue on TreeView with large data set #10300

satyajitrout58 opened this issue Sep 10, 2023 · 1 comment
Assignees
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! performance

Comments

@satyajitrout58
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 馃暪

Link to live example: https://stackblitz.com/edit/react-eywhbq-ldiizc?file=Demo.tsx,index.tsx

Steps:

  1. Collapse tree items which all have subitems inside them. It takes some time to display.
  2. Click on the Add Item button to add a new item to the existing tree items.
  3. When we have more than 5,000 tree items if we collapse or add any item stack overflow and page unresponsive error is coming.

Current behavior 馃槸

  1. When we have more than 1000 items there is a delay while collapsing tree items.
  2. When we have more than 5,000 tree items if we collapse or add any item stack overflow and page unresponsive error is coming.

Expected behavior 馃

  1. All the operations should be faster when we have more than 1000 tree items

Context 馃敠

No response

Your environment 馃寧

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Order ID or Support key 馃挸 (optional)

No response

@satyajitrout58 satyajitrout58 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 10, 2023
@noraleonte noraleonte added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Sep 11, 2023
@noraleonte noraleonte changed the title Getting page unresponsive error and delay issue when we collapse or add treeitems with more than 1000 items in mui-treeview [TreeView] Getting page unresponsive error and delay issue when we collapse or add treeitems with more than 1000 items in mui-treeview Sep 11, 2023
@noraleonte noraleonte changed the title [TreeView] Getting page unresponsive error and delay issue when we collapse or add treeitems with more than 1000 items in mui-treeview [TreeView] Performance issue on TreeView with large data set Sep 11, 2023
@noraleonte
Copy link
Contributor

Hey @satyajitrout58 馃憢

Thanks for opening up this issue being interested in the TreeView 馃

Right now the component is not particularly optimized for supporting large datasets, but performance optimization in this sense is one of our main priorities for the upcoming months as we are redirecting more effort towards developing the TreeView.
I renamed and labeled the issue accordingly, and we will update you here once we have an improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! performance
Projects
None yet
Development

No branches or pull requests

3 participants