Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

limit codegen-units to get the maximum optimization #628

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sabify
Copy link

@sabify sabify commented Mar 13, 2022

Hello,

There might be a performance regression due to enabling lto without limiting the number of code generation units (codegen-units = 1).

References:
rust-lang/rust#47745
https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant