← All questionsToo earlyLanguages and frameworks
Is the new trait solver going to fix slow Rust compile times?
You are not the only one. Asked 1 time since November 2026, 4 of them in the last 4 weeks.
Times asked per week
9 Sept – 1 Dec
Week of 9 SeptTimes asked0Week of 16 SeptTimes asked0Week of 23 SeptTimes asked0Week of 30 SeptTimes asked0Week of 7 OctTimes asked0Week of 14 OctTimes asked0Week of 21 OctTimes asked0Week of 28 OctTimes asked0Week of 4 NovTimes asked0Week of 11 NovTimes asked0Week of 18 NovTimes asked04Week of 25 NovTimes asked4
Week of 9 SeptWeek of 25 Nov
Coloured columns are the last 4 weeks.
What people answer
- Some sayMuch of the slowness people see comes from dependencies and generated code (serde, syn, derive macros, generic instantiation), so counting only your own lines understates the work the compiler does.
- Some sayRelease profile deliberately trades compile time for runtime speed, so iterate on the dev profile and trim heavy dependencies where you can.
- One saysRust compile time is not inherently slow for modest projects, since a mid-sized crate with a few dependencies can build in release mode in under two seconds.
- One saysIf you hit slow trait resolution with the new solver, file an issue with details in the Rust repository so the developers can look at it.
- One saysPart of the compile cost is the safety checking, such as type and memory-safety analysis, that rustc does, so it won't vanish.
serdesyncrossbeamrandTaffy
A language model summarised 8 public replies and posts. Views are mixed. These are other people's views, not advice from Navigara.
What people asked
Each line is our one-sentence summary. The link opens the original discussion.
- Are there benchmarks for the Rust next trait solver that include pathological cases of blanket implementations?Open thread →
- Why is avoiding external libraries impractical in Rust but not in C++ when it comes to compile times?Open thread →
- Why does compiling a Rust project with a few small dependencies take several seconds in release mode, when a comparable C++ project compiles and runs its tests in under a second?Open thread →
Where it is asked
- Hacker News4