-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Allow for setting a ThinLTO import limit during bootstrap #67450
Allow for setting a ThinLTO import limit during bootstrap #67450
Conversation
r=me on the code changes |
I'm not sure if that |
553287d
to
822a678
Compare
Fixed a typo in a comment. We'll see if this builds faster now that the docker image is cached. |
PR builders don't cache the built docker images. |
Not sure if this build was an outlier but it finished 10-15 min faster than all the other PRs I was browsing through just now. |
Or not :) variance seems to be quite high. |
☔ The latest upstream changes (presumably #67540) made this pull request unmergeable. Please resolve the merge conflicts. |
Just testing highfive, ignore this. r? @ghost |
@Mark-Simulacrum, is this still an r+ from you if I remove the changes to the CI job, but keep the changes to bootstrap? I think those are pretty useful for local builds. |
Actually, in the interest of seeing if it is an improvement, I would be on board landing the Docker file change - it's unlikely to hurt and could plausibly be something that we propagate to other builders, too. I don't think we'll get data unless we try it out :) Looks like this has some merge conflicts but I'm otherwise r+ on the whole PR. It also sounds like there's some ground to be covered in exposing this implicitly to end-user compiles, which is likely out of scope for this PR but something we shouldn't lose track of. |
r? @Mark-Simulacrum then |
822a678
to
6f57bad
Compare
@bors r=Mark-Simulacrum
Yes, that might make sense for local builds. This PR already adjusts the default for incremental builds. |
📌 Commit 6f57bad has been approved by |
…k-Simulacrum Allow for setting a ThinLTO import limit during bootstrap The benchmarks in #66625 have shown that a lower ThinLTO import limit can be a net win for bootstrap times. This PR: - exposes the setting to `config.toml`, - defaults to a lower limit if `incremental = true` in `config.toml`, and - sets a lower limit for `x86_64-gnu-llvm-7` CI image in order to make the jobs complete more quickly (which remains to be tested). This setting will affect how the compiler and it's tools are compiled. It will not affect the settings the compiler uses when compiling user code. r? @pietroalbini cc @rust-lang/infra
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
💔 Test failed - checks-azure |
@bors retry @rust-lang/infra Seems like a spurious failure? |
…imit, r=Mark-Simulacrum Allow for setting a ThinLTO import limit during bootstrap The benchmarks in rust-lang#66625 have shown that a lower ThinLTO import limit can be a net win for bootstrap times. This PR: - exposes the setting to `config.toml`, - defaults to a lower limit if `incremental = true` in `config.toml`, and - sets a lower limit for `x86_64-gnu-llvm-7` CI image in order to make the jobs complete more quickly (which remains to be tested). This setting will affect how the compiler and it's tools are compiled. It will not affect the settings the compiler uses when compiling user code. r? @pietroalbini cc @rust-lang/infra
Rollup of 10 pull requests Successful merges: - #67450 (Allow for setting a ThinLTO import limit during bootstrap) - #67595 (Suggest adding a lifetime constraint for opaque type) - #67636 (allow rustfmt key in [build] section) - #67736 (Less-than is asymmetric, not antisymmetric) - #67762 (Add missing links for insecure_time) - #67783 (Warn for bindings named same as variants when matching against a borrow) - #67796 (Ensure that we process projections during MIR inlining) - #67807 (Use drop instead of the toilet closure `|_| ()`) - #67816 (Clean up err codes) - #67825 (Minor: change take() docs grammar to match other docs) Failed merges: r? @ghost
The benchmarks in #66625 have shown that a lower ThinLTO import limit can be a net win for bootstrap times. This PR:
config.toml
,incremental = true
inconfig.toml
, andx86_64-gnu-llvm-7
CI image in order to make the jobs complete more quickly (which remains to be tested).This setting will affect how the compiler and it's tools are compiled. It will not affect the settings the compiler uses when compiling user code.
r? @pietroalbini
cc @rust-lang/infra