Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are you building in release or debug? Do you have lto enabled? Rust compile time is absolutely worse than c++, and I'm not sure many in the community would disagree. You need to aggressively split large crates up to make it sane. A lot of this comes down to the fact the crate is the compilation unit rather than individual files.


It would appear that when actually measured head to head, compile times are approximately the same: https://quick-lint-js.com/blog/cpp-vs-rust-build-times/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: