News for hackers. Stuff that matters.
Re:Why is my Rust build so slow? by jcelerier on Friday December 31, 2021 @05:08AM (#29746507)
Here's my edit-compile-run cycle in dev configuration: https://streamable.com/az397y

I use Qt, boost, lots of templates.

- clang as a compiler

- mold as a linker

- PCH (easy with cmake)

- plugin architecture for the software ; plugins are dynamic libraries when developing (everything is linked statically for releases which take of course much longer to build with lto, etc.)

- building on Linux (it's seriously slower on Windows, when using the exact same compiler on the exact same SSD)

Re:Why is my Rust build so slow? by mastax on Friday December 31, 2021 @10:15AM (#29748722)
Disabling Windows Defender in your build directories can be a serious boost. NTFS is still slow, though.
Re:Why is my Rust build so slow? by dgellow on Monday January 03, 2022 @11:17AM (#29782298)
You can also disable Windows Defender for the build process, for example disabling it for devenv.exe makes Visual Studio builds waaaaaay faster!
Re:Why is my Rust build so slow? by nmfisher on Saturday January 01, 2022 @03:10AM (#29756524)
Which editor is this?
Re:Why is my Rust build so slow? by dgellow on Monday January 03, 2022 @11:13AM (#29782256)
Qt Creator I believe? Not 100% sure.