4 ms·
How does Rust's compile times compare with those of C++?
by frankzinger 11y ago
How does Rust's compile times compare with those of C++?
- steveklabnik 11y agoWe don't have a whole lot of data, but generally faster. I can't seem to find the blog post now, but someone ported their raytracer from C++ to Rust, and the compile time was... half? I think?
- phaylon 11y agoDo you mean this[1] port? I can't remember one that had statistics on incremental builds during development, unfortunately. [1] https://ruudvanasseldonk.com/2014/10/20/writing-a-path-tracer-in-rust-part-7-conclusion https://ruudvanasseldonk.com/2014/10/20/writing-a-path-trace... (See "Performance")
- steveklabnik 11y agoYes! That one. Right now, Rust only builds each crate in paralell, we don't support incremental re-builds within crates. There's an RFC already though, and build times are gonna be a big focus of the next release cycle or two.
- Manishearth 11y agoWait, really? Wow. I always thought Rust was slower to compile. Huh.
- steveklabnik 11y agoYeah, people say Rust is slow to compile, but when they say that, they aren't generally talking about C++.