3 ms·
I have a ~200K line Rust project split into about 50 crates without about 700 dependent crates. It is not much faster to build on an 18-core AWS machine (c5d.9x
by roca 7y ago
I have a ~200K line Rust project split into about 50 crates without about 700 dependent crates. It is not much faster to build on an 18-core AWS machine (c5d.9xl) than on my quad-core laptop.
- eptcyka 7y agoMost likely due to I/o limitations.
- roca 7y agoI kinda doubt it. That machine has 72GB of RAM and everything can fit in cache. Also, building a very much larger C++ project (e.g. Firefox) can saturate all the cores no problem.
- glandium 7y agoThat's one of the biggest problems with rust. In many cases, the dependency graph is such that not a lot of crates can be compiled at the same time. Compound with the fact that building some crates can takes minutes, and overall build times can be terrible. Just look at the CPU usage on a >= 16 cores machine while building the rust compiler itself. The only time all cores are used, essentially, is while building LLVM.