by Ygg2 · 2y ago · 0 comments
What memory are you using? Are you overclocking? Are you using SSD?
edit: (also, the machine was recently rebooted and had very few processes running)
After i posted the comment i tested on a laptop running windows with wsl (i7-12850HX 16c 24t) and the first build was going above 8 minutes.
I ran this on MSVC toolchain on windows. With like 43% memory taken by various Firefoxe and IntelliJ windows.
Either compilers REALLY love CORES, or the Memory speed is causing issue :/
EDIT: Windows compilation 8min took less time than Linux 45min?
> Filesystem Size Used Avail Use% Mounted on
> tmpfs 31G 22M 31G 1% /tmp
Try running `cargo build --timings`, it creates a report about build times. My guess would be storage speed, i would not expect memory speed to be that much of an issue.
edit:
> Windows compilation 8min took less time than Linux 45min?
I dont think i understood this correctly, but in the case you are asking (for clarification) about my compile times, i got around 3m:18s on linux, and around >8 minutes on WSL.
Yeah, I got a bit longer time now, after `cargo clean `. Here are the timings: https://html-preview.github.io/?url=https://gist.githubuserc...
It's still strange win 10 was faster to compile on a worse CPU and worse memory :/
Maybe WSL has some issues that MSVC toolchain doesn't.
> I dont think i understood this correctly, but in the case you are asking (for clarification) about my compile times
Yes. I was confused by its output, i.e. 2541.91s