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

[docs] Remove production profiler from docs build #15959

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

lauri865
Copy link
Contributor

@lauri865 lauri865 commented Dec 20, 2024

Fixes #15957 – production profiler adds overhead to rendering, which hurts performance. For whatever reason the performance impact is higher in next15, impacting scroll performance visibly.

@mui-bot
Copy link

mui-bot commented Dec 20, 2024

Deploy preview: https://deploy-preview-15959--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against a0df218

@lauri865
Copy link
Contributor Author

Before:
https://next.mui.com/x/react-data-grid/#commercial-licenses

After:
https://deploy-preview-15959--material-ui-x.netlify.app/x/react-data-grid/#commercial-licenses

Drag the scrollbar up/down and verify that there's no flash of content anymore.

It might be desirable to add the profiler to preview builds though, but this is to display the root cause of the issue. Could potentially affect #15681 as well.

@arminmeh arminmeh added docs Improvements or additions to the documentation performance labels Dec 20, 2024
@romgrk romgrk merged commit f985ea0 into mui:master Dec 20, 2024
21 of 22 checks passed
@oliviertassinari oliviertassinari changed the title [docs] remove production profiler from docs build [docs] Remove production profiler from docs build Dec 20, 2024
"build": "rimraf ./export && cross-env NODE_ENV=production next build --profile && pnpm build-sw",
"build": "rimraf ./export && cross-env NODE_ENV=production next build && pnpm build-sw",
Copy link
Member

@oliviertassinari oliviertassinari Dec 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eps1lon initially added this flag in mui/material-ui#21975.

I'm making the connection as it seems that this started with upgrading Next.js 14.2.20 -> 15.1.1 #15144.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation performance regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Scroll performance regression in v8 vs. v7
5 participants