Open oliviertassinari opened 4 days ago
I have 2 main ongoing topic for performances:
And then we have regular optimization, some code might be badly designed right now. But I expect the selectors to be a good milestone, re-rendering only the Tree View + a handful of items when toggling the expansion of one item should help a lot compared to today.
Steps to reproduce
Steps:
https://github.com/user-attachments/assets/83b86db1-73ca-4f23-8b6d-28ff05b52891
Current behavior
It takes 200ms to respond, on a high-end laptop
Expected behavior
It takes 20ms to respond, on a high-end laptop
Context
I have noticed this from: https://pagespeed.web.dev/analysis/https-mui-com-material-ui-customization-default-theme/af76fe8h6e?form_factor=desktop. The field data says the page is too slow:
It was so much faster in https://v5-0-6.mui.com/customization/default-theme/ before we moved to use the tree view.
We could potentially use React.useDeferredValue like in https://github.com/mui/material-ui/pull/43569 for the checkbox lag but it won't solve the root problem.
To be noted that #9685 might be needed to solve the switch all case, but for expanding a node of 5 items like in my screen recording, it can't be the solution.
Your environment
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo
Search keywords: -