by pytness · 2y ago · 0 comments
Ran on arch (AMD R7 7800X3D).
First build:
> cargo build 2574.91s user 79.89s system 1341% cpu 3:17.84 total
After change:
> cargo build 11.97s user 1.62s system 176% cpu 7.719 total
After another change, this time with --timings:
> cargo build --timings 12.00s user 1.60s system 176% cpu 7.722 total
Unit | Total | Codegen
1. veloren-server v0.16.0 4.9s 3.7s (75%)
2. veloren-voxygen v0.16.0 4.1s 2.0s (49%)
...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.