News for hackers. Stuff that matters.
Re:What part of Rust compilation is the bottleneck? by jokethrowaway on Saturday March 16, 2024 @06:00AM (#39724573)
Over the years compile speed improved quite a bit (recently this: https://blog.rust-lang.org/2023/11/09/parallel-rustc.html made quite the difference)

If we can squeeze more performance that's great but the largest concern I have around compilation is with the size of the target directory

It can balloon up to node_modules levels

Re:What part of Rust compilation is the bottleneck? by chrismorgan on Saturday March 16, 2024 @07:02AM (#39724815)
I don’t find node_modules exceeding even a few hundred megabytes very often. But Rust target directories can easily reach multiple gigabytes.
Re:What part of Rust compilation is the bottleneck? by pornel on Saturday March 16, 2024 @05:17PM (#39729543)
Apart from incremental compilation cache, a large chunk of it is debug information. Lowering debug info precision helps a lot (although it’s still suspiciously large.)
Re:What part of Rust compilation is the bottleneck? by kobzol on Saturday March 16, 2024 @06:41AM (#39724729)
There have been some recent improvements to this, but yeah, it can be still quite large. There is a WIP development of a garbage collector in Cargo that could help with this.