My Rust build is taking around 20 seconds to build on my new Macbook Pro, sometimes even freezing my computer in the process. I have compared the runtime to an equivalent computer, and there it builds and runs almost instantly.
Using the profiler in Mac Instruments, the execution of my build seems to be doing nothing for most of the 20 seconds, and then only rendering the output at the very end.
I have uninstalled and reinstalled rust and cargo several times with different versions, as well as running cargo clean, with no luck. This occurs for all projects and builds that I have tried.
I am using macOS Mojave 10.14.6. Have already compared the disk write speeds to another computer and did not see any problems.
rustc 1.39.0 (4560ea788 2019-11-04)