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

[charts] Slow Sparkline on /material-ui/getting-started/templates/dashboard/ #16018

Open
oliviertassinari opened this issue Dec 28, 2024 · 0 comments
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! performance status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Dec 28, 2024

Steps to reproduce

Steps:

  1. Open https://mui.com/material-ui/getting-started/templates/dashboard/
  2. Use the sorting feature, or pagination feature
  3. See how the INP is "poor":
SCR-20241228-plcd
  1. See how I'm not the only one: https://pagespeed.web.dev/analysis/https-mui-com-material-ui-getting-started-templates-dashboard/56m6qhi0mo?form_factor=desktop
SCR-20241228-plhy

Context

In my view, this is super important, a demo that doesn't pass webvitals is a demo that doesn't exist. I mean, it's not usable in production.

At 100ms, this starts to be great, e.g. https://dashboard.tremor.so/details

SCR-20241228-pmhh

Root cause

The root of the issue seems to be with this column:

SCR-20241228-porc

I can measure that 90% of the time is spent rendering this.

The root cause might be #9799. Now, it's really weird, I can reproduce this https://stackoverflow.com/questions/52991688/significantly-higher-performance-in-react-whilst-profiling-with-chrome

When I enable profiling mode, it's so much faster 😆, so no longer a true issue.

So maybe the INP reported by https://pagespeed.web.dev/ is actually the theme toggle:

SCR-20241228-slty
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work priority: important This change can make a difference performance component: data grid This is the name of the generic UI component, not the React module! status: waiting for maintainer These issues haven't been looked at yet by a maintainer component: charts This is the name of the generic UI component, not the React module! labels Dec 28, 2024
@oliviertassinari oliviertassinari changed the title [data grid] Demo in https://mui.com/material-ui/getting-started/templates/dashboard/ is not usable [data grid][charts] Demo in /material-ui/getting-started/templates/dashboard/ is not usable Dec 28, 2024
@oliviertassinari oliviertassinari changed the title [data grid][charts] Demo in /material-ui/getting-started/templates/dashboard/ is not usable [charts] Demo in /material-ui/getting-started/templates/dashboard/ is not usable Dec 28, 2024
@oliviertassinari oliviertassinari changed the title [charts] Demo in /material-ui/getting-started/templates/dashboard/ is not usable [charts] Show Sparkline on /material-ui/getting-started/templates/dashboard/ Dec 28, 2024
@oliviertassinari oliviertassinari removed priority: important This change can make a difference component: data grid This is the name of the generic UI component, not the React module! labels Dec 28, 2024
@oliviertassinari oliviertassinari changed the title [charts] Show Sparkline on /material-ui/getting-started/templates/dashboard/ [charts] Slow Sparkline on /material-ui/getting-started/templates/dashboard/ Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! performance status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant