News for hackers. Stuff that matters.
Re:C++ vs. Rust Build Times by tumdum_ on Friday January 06, 2023 @04:54AM (#34272897)
Almost always the cost of borrow checker is trivial compared to code gen (and sometimes instantiation of generics). You can see that easily by comparing time of `cargo check` and `cargo build`.
Re:C++ vs. Rust Build Times by vegerot on Friday January 06, 2023 @05:13AM (#34273020)
The specific time borrow check takes is in the article. Check out the section on “ Cranelift backend”
Re:C++ vs. Rust Build Times by strager on Friday January 06, 2023 @05:43AM (#34273216)
Note: I wouldn't draw any conclusions from the -Zself-profile data in the article. It looks at just one rustc invocation, and is one sample.