Closed Benji377 closed 1 week ago
This PR updates the Cargo.toml release profile to improve the performance and optimize the binary size:
Cargo.toml
opt-level = 3
lto = true
codegen-units = 1
strip = true
panic = "abort"
This PR updates the
Cargo.toml
release profile to improve the performance and optimize the binary size:opt-level = 3
: Enables maximum performance optimizations, focusing on runtime speed.lto = true
: Enables Link Time Optimization for better cross-crate and whole-program optimizations.codegen-units = 1
: Reduces the number of code generation units to improve inlining and optimization at the cost of longer compilation times.strip = true
: Strips debug symbols from the final binary to reduce its size.panic = "abort"
: The panic setting is left at the default to maintain stack unwinding for better debugging.