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

[pickers] Improve TypeScript performance in PickersDay #12920

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

flaviendelangle
Copy link
Member

Before:

image

After:

image

@flaviendelangle flaviendelangle added performance typescript component: pickers This is the name of the generic UI component, not the React module! labels Apr 26, 2024
@flaviendelangle flaviendelangle self-assigned this Apr 26, 2024
@mui-bot
Copy link

mui-bot commented Apr 26, 2024

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

Generated by 🚫 dangerJS against 23297a3

Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

Nice! 💙

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

Always love a short and precise improvement! 💙

@flaviendelangle flaviendelangle merged commit a61561a into mui:master Apr 26, 2024
20 checks passed
@flaviendelangle flaviendelangle deleted the perf-ts-pickersday branch April 26, 2024 14:30
@LukasTy
Copy link
Member

LukasTy commented Apr 26, 2024

@flaviendelangle @michelengelen

Visual trace representation:

Before

Screenshot 2024-04-26 at 17 39 50

After

Screenshot 2024-04-26 at 17 39 58

The two thicker left bars are AnimatedArea and BarElement.
P.S. This is for the docs package.
P.P.S. Pay attention to the top bar representing time (70s vs 50s). 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! performance typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants