News for hackers. Stuff that matters.
Re:Reducing Rust Incremental Compilation Times on macOS by aw1621107 on Sunday April 18, 2021 @10:48AM (#26852966)
> When does the Rust compiler spend most of it's time? Is it at the checking stage?

rustc has a self-profiler that can be used to answer this question [0], as well as a mode that times compiler passes [1].

There's no single reason the Rust compiler is slow, as it depends quite heavily on the code being compiled. For some codebases, LLVM code takes up most of the time; in other codebases (e.g., extremely generic-heavy codebases), it'll be checking-related passes.

[0]: https://github.com/rust-lang/measureme/blob/master/summarize...

[1]: https://wiki.alopex.li/WhereRustcSpendsItsTime

There are no comments on this comment yet.