3 ms·
What was the before/after on your Rust link times?
by forrestthewoods 3y ago
What was the before/after on your Rust link times?
- ripley12 3y agoAbout a year ago, I was seeing incremental builds go from ~8s to ~2.7s with Mold. Huge quality of life improvement. (fairly large Rust project, 24-core machine, Linux)
- Measter 3y agoA quick and dirty comparison on my project: -- GNU Ld 2.31.1 >> cargo build --release Compiling mfl v0.1.0 (/mnt/d/Programming/Projects/Rust/mfl/crates/mfl) Finished release [optimized + debuginfo] target(s) in 10.14s -- LLD-14 >> cargo build --release Compiling mfl v0.1.0 (/mnt/d/Programming/Projects/Rust/mfl/crates/mfl) Finished release [optimized + debuginfo] target(s) in 6.20s -- Mold 2.0 >> cargo build --release Compiling mfl v0.1.0 (/mnt/d/Programming/Projects/Rust/mfl/crates/mfl) Finished release [optimized + debuginfo] target(s) in 6.02s I did the following for each test: cargo clean cargo build --release touch crates/mfl/src/main.rs cargo build --release With the timings coming from the second build. The project links in LLVM, and the tests were done under WSL1 on Windows 10 with the files on the Windows file system, which is how the project is developed in general.
- aseipp 3y agoPersonal anecdote: linking a debug build of buck2 (big Rust codebase) went from 30s to 3s for me. Pretty wonderful.