We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the current rustc setup, the best Rust release profile for canister seems to be:
rustc
[profile.release] lto = true opt-level = 2
Observations:
LTO = true
LTO = 'thin'
opt-level = 'z'
opt-level = 3
opt-level = 2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With the current
rustc
setup, the best Rust release profile for canister seems to be:Observations:
LTO = true
reduces both binary size and cycle cost (rust: opt 3 #63)LTO = true
toLTO = 'thin'
increases both binary size and cycle cost (rust: opt 2 thin #64, rust: opt 3 thin #65)opt-level = 'z'
reduces binary size by 20%+ with cycle cost also increased by 20%+ (rust: opt z #61)opt-level = 3
toopt-level = 2
reduces binary size by 5%+ with negligible cycle cost change (rust: opt 2 compared with opt-3 #62)The text was updated successfully, but these errors were encountered: