3 ms·
The benchmarks were done before enabling split dwarf support for llvm. Once enabled it will allow to be as or faster than cranelift while keeping sane runtime p
by The_rationalist 6y ago
The benchmarks were done before enabling split dwarf support for llvm.
Once enabled it will allow to be as or faster than cranelift while keeping sane runtime performance.
https://github.com/rust-lang/rust/pull/77117 https://github.com/rust-lang/rust/pull/77117
- swsieber 6y agoI'd be surprised if it was as fast. Cursory googling indicates roughly a 15% time reduction. So cranelift is set to save twice as much time as split dwarf. If you have other stats, I'd love to see them. I imagine that c++ numbers don't translate over into rust 1:1.
- kibwen 6y agoI'm no expert, but that sounds like a speedup in the linker rather than in the code generator. I believe that the Cranelift numbers referenced here are using the system linker; using LLD should show even greater performance improvements (though it's still worth benchmarking). Furthermore it sounds like something that could be added to Cranelift as well.