3 ms·
Also, Rust compile times aren't that bad the last time I checked. Maybe they got better and people just don't realize it?
by brodo 1y ago
Also, Rust compile times aren't that bad the last time I checked. Maybe they got better and people just don't realize it?
- zimpenfish 1y ago> Also, Rust compile times aren't that bad the last time I checked. I dunno - I've got a trivial webui that queries an SQLite3 database and outputs a nice table and from `cargo clean`, `cargo build --release` takes 317s on my 8G Celeron and 70s on my 20G Ryzen 7. Will port it to Go to test but I'd expect it to take <15s from clean even on the Celeron.
- fn-mote 1y agoI don’t think build time from `clean` is the right metric. A developer is usually using incremental compilation, so that’s where I want the whatever speed I can get. Nobody likes a 5m build time, but that’s a very old slow chip!
- lerno 1y ago"Incremental compilation is fast", is something people only talk about when normal compilation speeds are abysmal. Sadly, C++ set the expectations here, which made both Rust and Swift think that compilation times in the minutes is fine. If your code compiles in 1 second from scratch then what do you need incremental compilation for?
- tialaramex 1y ago> If your code compiles in 1 second from scratch then what do you need incremental compilation for? That's entirely fair. But, when I watch somebody like Jon Blow, with his 1 second from scratch compilation the result seems to be that he just iterates a lot more without being significantly more productive than I am. I can imagine for some parts of video game design fast iteration might be crucial, yet I struggle to imagine that compilation speed is what matters there. Systems design, art direction, plotting, these don't seem like factors where you need those one second compile times.
- nextaccountic 1y ago> If your code compiles in 1 second from scratch then what do you need incremental compilation for? I really want incremental compilation in 100ms or less, this makes live reloading (such as with dioxus subsecond [0]) so much more enjoyable. I don't care about the time spent on fully recompiling the whole project from scratch though. [0] https://www.reddit.com/r/rust/comments/1j8z3yb/media_dioxus_subsecond_rust_hotpatch_engine/ https://www.reddit.com/r/rust/comments/1j8z3yb/media_dioxus_...