Commit be80bd3
perf: enable aggressive release build optimizations (#133)
## Description
Closes #132
This PR optimizes the release profile settings in `Cargo.toml`. It
introduces Link-Time Optimization (LTO), reduces code generation units
to a single core for maximum compiler analysis, and strips heavy debug
data while maintaining human-readable panic logs.
## How Was This Tested?
Tested locally inside the Devcontainer. Verified binary size differences
using `ls -lh`. Drops from **6.9 MB** to **4.7 MB** (~32% reduction):
<img width="795" height="66" alt="image"
src="https://github.com/user-attachments/assets/5158220e-afa7-409c-b618-ce0733f37a07"
/>
`cargo build --release` took **~46 seconds** with build optimizations
vs. **~18 seconds** with no optimizations. I used `cargo clean` before
each build command.
Co-authored-by: Ashar <coder3101@users.noreply.github.com>1 parent 7168cd1 commit be80bd3
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments