-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Improve type check performance #27381
Conversation
Bundle size will be reported once Azure build #30886 finishes. |
edd0d4e
to
bc5041c
Compare
what is missing to accept this ? |
I apologize, but so far we didn't have bandwidth to dive deeper into TS perf issues. @ypresto are you still interested in continuing this effort? I have started some investigation, the first one being around the I can try the |
I was too busy this year and still busy. 🙏 I'll organize performance pitfalls and caveats, and try to improve TypeScript itself. (Note that TS perf fix for unions with many primitives is already landed in
You mean, no AdditionalProps nor template type is used for |
I'll just drop this here - https://mui.com/careers/react-engineer-core/ 😁 😉
Thanks, yeah this answers my question. This is my investigation on the Also if I am being honest, I would focus on improving the types on the new v5 utils at this point, I don't think it's worth spending time on the legacy styling solution as it is not React 18 compatible and I don't expect the usage to be growing in the future. |
@ypresto thanks for the investigations done in the PR. As there weren't any recent updates, I am closing it. Feel free to re-open a new issue if you still want to investigate some type checks perfs. Also, I would recommend creating PR per module, so that it is easier for review :) |
Implements performance improvement for:
TODO: "
< 10
includes to primitives" issue should be sent to TypeScript.