-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Severe compilation time blowup in typeck_tables_of #70513
Comments
Are you on the newest nightly? |
Let me run another profile on the latest nightly. |
Same behavior on nightly |
I still haven't minimized this but after more investigation I found that the slowdown is mostly spent as self time in |
This simple test of a codegen macro from protocol using a transport from protocol-mve-transport takes an unreasonable amount of time to compile.
protocol
itself takes 4 to 5 minutes to compile on my laptop but compiling this simple example takes up to 20 minutes on the same hardware, and that's with a lot of the macro expansion inprotocol
disabled to reduce the time spent.-Z self-profile
indicates that time is overwhelmingly (> 90%) spent as self time intypeck_tables_of
for this main function undercollect_mod_item_types
etc.Unfortunately, there isn't a lot that I can do to reduce this as I have no idea what the underlying factors are that would lead to this occurring. I have a very limited understanding of incremental compilation or what individual queries are responsible for. If any logs, profile traces, etc. would be helpful please let me know and I will provide them.
The text was updated successfully, but these errors were encountered: