Open armaniferrante opened 2 years ago
The following Cargo.toml settings have been shown to reduce compute units
[profile.release] lto = "fat" codegen-units = 1 [profile.release.build-override] opt-level = 3 incremental = false codegen-units = 1
Example here https://github.com/project-serum/serum-dex/pull/159
@armaniferrante is this still relevant? If so I don't understand why this isn't the default setting. Is there a hidden tradeoff?
Slower compile times is the only one I'm aware of.
The following Cargo.toml settings have been shown to reduce compute units
Example here https://github.com/project-serum/serum-dex/pull/159