-
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
Incremental compilation - internalize symbols using up more than 1GB (double the RAM usage before) #41466
Comments
cc me |
I suspect this is due to the higher number of codegen units/object files that incremental compilation produces. "internalize symbols" is the first thing where we measure memory consumption after all LLVM modules have been created. In non-incremental mode that's just one LLVM module, in incremental mode it's somewhere around 30 for this crate. If you recompile with only a small change, memory consumption should be a lot lower (given that the change does not affect too many of the object files). The issue of keeping all LLVM modules in memory at the same time is already recorded as #39280. |
The way passes nest always throws me off! This makes a lot more sense. |
Thanks for the explanation. Should I close this issue in favour of #39280 then? |
Although I tried what you said an just made a small change (added a |
Can you tell me where exactly you made the change and which version of the crate that was? |
Okay I am using the latest version (
|
Since #39280 is now closed I'm going to close this as well |
It's my first time testing out incremental compilation and I encountered some issues building
alacritty
after making a negligible change... After speaking with @eddyb on IRC he suggested I open an issue here...here is
-Z time-passes
with incremental compilation enabled:https://gist.github.com/neon64/bb8ca569575b5e07b98da8805fd7c223
and without:
https://gist.github.com/neon64/50d005c24bb9da767615f5a5ba2cfc97
cc @nikomatsakis
The text was updated successfully, but these errors were encountered: