Skip to content
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 optimization in release profile #9

Merged
merged 1 commit into from
Jun 8, 2021
Merged

Improve optimization in release profile #9

merged 1 commit into from
Jun 8, 2021

Conversation

Absolucy
Copy link
Contributor

@Absolucy Absolucy commented Jun 6, 2021

  1. lto = "thin" + codegen-units is not a good idea, see codegen-units + ThinLTO is not as good as codegen-units = 1 rust-lang/rust#47745. lto = true and codegen-units = 1 could potentially be better, though, although I doubt it'd matter too much, as the performance difference would likely only show in benchmarks, with little impact on actual use, so it's just more convenient to have the better linking speed with thin LTO.
  2. opt-level = 3 is already the default.
  3. incremental has occasional strange bugs, best to leave it off (Incremental occasionally causes link failures (in particular when build process is interrupted) rust-lang/rust#81280, Unstable fingerprints tracking issue rust-lang/rust#84970)

1. `lto = "thin"` + `codegen-units` is not a good idea, see rust-lang/rust#47745. `lto = true` and `codegen-units = 1` could potentially be better, though, although I doubt it'd matter too much.
2. `opt-level = 3` is already the default.
3. incremental has occasional strange bugs, best to leave it off
@Putnam3145
Copy link
Owner

on the one hand, yeah, let's rev up those compile times, on the other hand, the compile times are easily the least painful part of auxmos

@Putnam3145 Putnam3145 merged commit 6295a31 into Putnam3145:master Jun 8, 2021
@Absolucy Absolucy deleted the patch-1 branch June 8, 2021 17:59
MarkSuckerberg pushed a commit to MarkSuckerberg/auxmos that referenced this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants