Comment by dabinat

1 day ago

I think Rust is noticeably slow for two reasons:

1. The default settings aren’t well optimized. So the pattern a lot of people fall into is: start a project and everything’s fast, then add more code and dependencies and everything gets super slow. Then you Google how to fix it, change some compile settings and restructure your project and it speeds up again. Rust requires knowledge and effort to keep compile times reasonable - it’s not set up that way by default.

2. Rust Analyzer / cargo check is inefficient and throws a lot of data away each time instead of caching it. So in a larger project you’re waiting on it to catch up. Waiting on Rust Analyzer to check my code is easily the largest amount of time wasted, more so than actually compiling it.

But it should be said that this is being worked on: https://rust-lang.github.io/rust-project-goals/2025h2/relink...

My point is that rustc is still noticeably faster than tsc yet people complain about the former and nor about the later.