top | item 44398706

(no title)

Scuds | 8 months ago

I have a mac m4 pro and it's 2 minutes to compile all of Deno, which is my go-to for bigass rust projects.

```

> cargo clean && time cargo build

cargo build 713.80s user 91.57s system 706% cpu 1:53.97 total

> cargo clean && time cargo build --release

cargo build --release 1619.53s user 142.65s system 354% cpu 8:17.05 total

```

this is without incremental compilation. And it's not like you have to babysit a release build if you have a CI/CD system

discuss

order

hu3|8 months ago

Interesting, M1 Max took 6 minutes and M1 Air took 11 minutes according to this article:

https://corrode.dev/blog/tips-for-faster-rust-compile-times/...

Scuds|8 months ago

Oh yes, apple hardware continues to improve and M4 pro still the single threaded champion of anything under 300 w.

FWIW - last stage where the binary is produced takes the longest and is single threaded and that's the largest difference between release and debug.