[charts][sparkline] Heavy layerize time #16658
Labels
bug 🐛
Something doesn't work
component: charts
This is the name of the generic UI component, not the React module!
performance
Steps to reproduce
Steps:
Screen.Recording.2025-02-19.at.23.32.02.mov
Current behavior
The popover feels really slow.
Expected behavior
The popover feels shart fast as on https://planner.tremor.so/quotes/monitoring.
Context
I don't know about the others, but for me, experiencing this on the dashboard template is a turn-off to adopting Material UI, I can't quite place it (without knowing this issue, and about the others, this is not just this GitHub issue that creates this feeling), but something about the page feels slow.
Now, if we look closer at what is going on with the layerize time. I find
It turns out that it's very much related to #16018. If I remove the data grid from the page, I remove all the sparklines, the performance issue goes away.
So this means that each time the popover updates its position, we pay the cost of point 4. in #9799 (comment). By removing all the layers in the Sparkline chart, we fix this problem.
Initially I thought it was about using wrong CSS properties, but this seems to have no link https://lab.skk.moe/css-triggers.
Your environment
"@mui/x-charts": "7.26.0",
Search keywords: -
The text was updated successfully, but these errors were encountered: