Skip to content

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Sep 3, 2025

Closes #19414

Make stringify() more performant.

@romgrk romgrk added scope: data grid Changes related to the data grid. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Sep 3, 2025
@romgrk romgrk requested a review from a team September 3, 2025 19:03
import { alpha, darken, lighten, type Theme } from '@mui/material/styles';
import { useTheme } from '@mui/material/styles';
import { hash, stringify } from '@mui/x-internals/hash';
import { hash } from '@mui/x-internals/hash';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The change makes stringify() too specific to theme objects to be alongside hash(), and the function wasn't used anywhere else, so it's been moved here.

@mui-bot
Copy link

mui-bot commented Sep 3, 2025

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

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 🔺+21B(+0.01%) 🔺+13B(+0.01%)
@mui/x-data-grid-pro 🔺+21B(0.00%) 🔺+14B(+0.01%)
@mui/x-data-grid-premium 🔺+21B(0.00%) 🔺+11B(+0.01%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 44ac7d9

@michelengelen michelengelen merged commit 98aa220 into mui:master Sep 4, 2025
21 checks passed
JCQuintas pushed a commit to JCQuintas/mui-x that referenced this pull request Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: data grid Changes related to the data grid. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Improve the performance of stringify
5 participants