4 ms·
Those numbers are the entire compile time, parsing/typecheck/MIR+MIR optimization/linking Don't have numbers handy, so hard to say how much faster Cranelift is
by __s 3y ago
Those numbers are the entire compile time, parsing/typecheck/MIR+MIR optimization/linking
Don't have numbers handy, so hard to say how much faster Cranelift is making the codegen portion, but gets into Amdahl's Law
- Filligree 3y agoAnd there are faster linkers than the default. …why is it still the default?
- 3836293648 3y agoCompatibility with niche usecases
- Filligree 3y agoThat sounds like a good reason to keep the existing one as an opt-in possibility.
- kibwen 3y agoBecause the linker provided by the system itself is the one that's guaranteed to be the most broadly compatible. For a toolchain to begin distributing an alternative linker is a lot of work on every supported platform (future versions of Rust may sidestep this issue by making LLD the default on certain platforms, which they get "for free" by dint of shipping alongside LLVM). But also, because there are about ten people on planet Earth qualified to write a production-grade linker, which is why LLD still isn't broadly recommended yet.