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] Filtering performance: cache values #9284

Merged
merged 7 commits into from
Jun 13, 2023

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented Jun 9, 2023

This PR applies point 2 of #9120.

@romgrk romgrk added performance component: data grid This is the name of the generic UI component, not the React module! labels Jun 9, 2023
@mui-bot
Copy link

mui-bot commented Jun 9, 2023

Netlify deploy preview

Netlify deploy preview: https://deploy-preview-9284--material-ui-x.netlify.app/

Updated pages

No updates.

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 540 1,039.2 540 786.9 205.614
Sort 100k rows ms 548.6 1,173.3 1,173.3 971.12 219.689
Select 100k rows ms 247.9 590 299.6 356.7 120.989
Deselect 100k rows ms 154.9 379.5 301 268.64 86.347

Generated by 🚫 dangerJS against 034166a

@cherniavskii
Copy link
Member

I have pushed a master merge commit to this branch to trigger Argos CI, but it's not reflected in the PR 🤔 Do I miss something or is there something wrong with GitHub?

@cherniavskii cherniavskii added the feature: Filtering Related to the data grid Filtering feature label Jun 12, 2023
@romgrk romgrk merged commit ee3e8e9 into mui:master Jun 13, 2023
@romgrk romgrk deleted the perf-filtering-cache-values branch June 13, 2023 22:44
@@ -295,36 +295,44 @@ export const buildAggregatedFilterApplier = (
});
};

const isNotNull = <T>(result: null | T): result is T => result != null;
Copy link
Member

@Janpot Janpot Jun 14, 2023

Choose a reason for hiding this comment

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

This would make it work for type checking at well

Suggested change
const isNotNull = <T>(result: null | T): result is T => result != null;
const isNotNull = <T>(result: T): result is NonNullable<T> => result != null;

Not the most important, but it just caught my eye

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! feature: Filtering Related to the data grid Filtering feature performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants