Are there any tips on how to improve this? I wouldn't expect compilation to be particularly IO-heavy, so I am a bit surprised to see the difference here. Or are they just using different machine specks for ubuntu and windows?
That's like 50% longer, feels like a pretty big difference to me I am specifically interested in the Compile step difference, which is 3:40 vs 2:43 and explains half of the difference (the other half seems to be initial checkout/caches, which is mostly IO and is unsurprising to me).
The crate may have more deps on Windows than Linux
(for example winapi).
Also, it is a known issue that rustc generated programs
slower on Windows than on Linux. The issue is tracked on
rust-lang/rust but I couldn't find it now.
There are 30 crates being compiled. This should mean like 35 processes launched while compiling. Even if process launching takes 1s (which it isn't) that wouldn't explain the slowness.