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

[DataGrid] Reduce dev checks #14416

Closed
wants to merge 1 commit into from

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Aug 30, 2024

Follow-up of #14410 (comment)

Reselect creates a full memoized selector and a ton of allocations on every selector call in v5, I think dev mode will feel too slow in some cases with those changes.

@romgrk romgrk added the component: data grid This is the name of the generic UI component, not the React module! label Aug 30, 2024
@romgrk romgrk requested a review from cherniavskii August 30, 2024 16:19
@mui-bot
Copy link

mui-bot commented Aug 30, 2024

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

Generated by 🚫 dangerJS against 15002da

Comment on lines +15 to +16
inputStabilityCheck: 'once',
identityFunctionCheck: 'once',
Copy link
Member

Choose a reason for hiding this comment

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

Looks like these are default values already: https://github.com/reduxjs/reselect/blob/88e7ffd7d46a1aebf866210075c322a0f424bbe1/src/devModeChecks/setGlobalDevModeChecks.ts#L11-L12
No objections to having them set explicitly though 👍🏻

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't saw them, all good then.

Copy link
Member

Choose a reason for hiding this comment

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

Merging this PR could still make sense – it's explicit and protects us against the default value change in the future.
What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's fine, I would expect that reselect doesn't change their defaults without a major. And at most it makes dev mode slower, so not an issue for our users.

@romgrk romgrk closed this Sep 2, 2024
@romgrk romgrk deleted the perf-reselect-dev-checks branch September 2, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants