4 ms·
Link times are the worst part but solveable with mold[1]/sold. Incremental compilations are usually an order of magnitude (or even two) faster than clean compil
by chiffaa 1y ago
Link times are the worst part but solveable with mold[1]/sold. Incremental compilations are usually an order of magnitude (or even two) faster than clean compiles but tbh that can still feel slow. Helped by using something like sccache[2] or even cranelift[3] when debugging. Still not as fast as having a hot-reloadable language but it gets you to a relatively pleasant speed still IME
[1] https://github.com/rui314/mold https://github.com/rui314/mold
[2] https://github.com/mozilla/sccache https://github.com/mozilla/sccache
[3] https://github.com/rust-lang/rustc_codegen_cranelift https://github.com/rust-lang/rustc_codegen_cranelift
- mmastrac 1y agoI've never been successful in getting sccache to really speed up projects, but then again only release builds have _really_ been impossible for me, and that's only when I was working on Deno which was absolutely massive.
- chiffaa 1y agosccache sped up my clean compiles by 2x on some projects, but it's a very YMMV solution most of the time