My feedback on compiling with Rust 1.90 vs 1.89
⚓ Rust 📅 2025-09-19 👤 surdeus 👁️ 8Hello,
I compiled the same project with two versions of Rust (1.89 and 1.90), here are the results:
| Rust version | Mode | Compilation time | Warnings | Executable size |
|---|---|---|---|---|
| 1.89 | debug | 44.92s | 1 | 332385336 B |
| 1.89 | release | 2m 28s | 1 | 19461344 B |
| 1.90 | debug | 39.01s | 5 | 341001416 B |
| 1.90 | release | 2m 22s | 5 | 19438616 B |
Compilation time: slight improvement
Executable size: larger in debug, smaller in release
I would appreciate your insights on why the executable size has increased in debug mode but decreased in release mode. Could this be related to the LLD linker, the LLVM version, or perhaps new optimizations introduced in the compiler?
Thank you in advance.
1 post - 1 participant
🏷️ Rust_feed