News for hackers. Stuff that matters.
Re:Common Misconceptions about Compilers by delta_p_delta_x on Tuesday December 10, 2024 @07:50AM (#42376355)
The biggest factor in improving LLVM compile/link times is sheer RAM capacity. LLVM compilation is extremely voracious with memory and the more you have the faster it is; otherwise, much time is spent swapping in and out of disk.

I've been compiling it with MSVC on Windows and the swap file after an LLVM compile balloons to ~60 GB. I inserted a couple more sticks to bring my 32 GB to 64 GB and my compile times shortened significantly (I don't have exact stopwatch times right now).

Re:Common Misconceptions about Compilers by almostgotcaught on Thursday December 12, 2024 @04:21AM (#42397604)
Use clang-cl instead - way better RAM usage profile and way faster too - I'm talking like 50% reduction.