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

[styles] Name anonymous function type #19996

Merged
merged 3 commits into from
Mar 5, 2020
Merged

Conversation

amcasey
Copy link
Contributor

@amcasey amcasey commented Mar 5, 2020

...to speed up compilation (by simplifying structural type comparison). Note that, in most cases, the performance benefit of extracting a name type will be insignificant.

In this case, however, it appears to cut compilation time by 10-15%.

Change courtesy of @ahejlsberg.

...to speed up compilation (by simplifying structural type comparison).
Note that, in most cases, the performance benefit of extracting a name
type will be insignificant.
@amcasey
Copy link
Contributor Author

amcasey commented Mar 5, 2020

Helps with #19113.

@mui-pr-bot
Copy link

mui-pr-bot commented Mar 5, 2020

No bundle size changes comparing daa0eff...82b8833

Generated by 🚫 dangerJS against 82b8833

@eps1lon eps1lon self-assigned this Mar 5, 2020
@eps1lon eps1lon added package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. typescript labels Mar 5, 2020
@eps1lon eps1lon changed the title [packages] Name anonymous function type [styles] Name anonymous function type Mar 5, 2020
@amcasey
Copy link
Contributor Author

amcasey commented Mar 5, 2020

Thanks @eps1lon!

@eps1lon eps1lon merged commit 79d9099 into mui:master Mar 5, 2020
@eps1lon
Copy link
Member

eps1lon commented Mar 5, 2020

@amcasey Much appreciated, thanks.

The $ExpectType will probably go away anyway at some point.

EsoterikStare pushed a commit to EsoterikStare/material-ui that referenced this pull request Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants