-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
codegen-units=16 doubles compile times for Firefox #48233
Comments
Sounds like #48025 |
cc @alexcrichton does this sound like a dupe of #48163 ? I'm going to test with/without that PR soon. |
Depending on what Rust version you are using, it might also be related to #48226? |
What's the compile time without the |
Will try and report back
…On Feb 15, 2018 7:54 AM, "Michael Woerister" ***@***.***> wrote:
What's the compile time without the ac_add_options --enable-debug?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#48233 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABivSN33HexQGqctOV85IRvk5stO0-c0ks5tVFMdgaJpZM4SHACu>
.
|
Nominating for prioritization and discussion (presuming it's not resolved before then). |
triage: P-medium Marking as P-medium for now until we get some more heat from the FF folks. ;) |
In particular, nobody is using CGU=16 yet, right? (But also, it's not entirely obvious to me that it would be desirable, given #47745) |
I tried it out again and it seems to be fixed. CGU=16 is the default, yeah? So everyone is using it. |
@Manishearth, I thought that FF is compiled with |
Release mode uses the default. |
Mmmmm, that might bump the priority somewhat. =) |
Is this with full LTO? |
I'm not sure, eddyb said that LTO turns it off. However, Firefox builds with LTO turned on only for the last crate. |
To clarify, rustc is using 16 codegen units by default in all modes, regardless of optimization level, LTO settings, etc. @Manishearth you mention this is fixed now though? If that's the case this was indeed likely fixed by #48163 |
Based on "I tried it out again and it seems to be fixed." from #48233 (comment), I'm going to close this issue. |
https://bugzilla.mozilla.org/show_bug.cgi?id=1436251
The other day I was experimenting with codegen-units, and realized that Firefox's build gets really slow with codgen-units=16 (the default):
I wasn't able to reduce the testcase.
If you wish to do it, use nightly to build Firefox with the following mozconfig file:
and revert this patch: https://hg.mozilla.org/mozilla-central/rev/fe90c7d53a7c
A useful bit of information may be that we pass
-Clto
only to the toplevel crate, i.e. we build withcargo rustc -- -Clto
. I don't remember but it might have been only the last crate ("gkrust") taking forever to build (I can retest this if you wish) so it might be some pathological case with LTO.cc @michaelwoerister
The text was updated successfully, but these errors were encountered: