Skip to content

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 scope: 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

scope: 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