Host-Tuned GCC for Faster Compilation
21 points by abareplace
21 points by abareplace
Is this worth doing on a normal Linux system?
It should have similar effects, I don't think there is anything in this context that makes WSL and "normal" Linux that different.
Depends what you're doing with that system. If you recompile C/C++/Fortran/whatever software all the time. Then likely yes. Otherwise you'll lose more time than gain overall
I've been doing native builds of my server's NixOS, but I don't have a good way to test the results across the entire OS. Does anyone have suggestions?
I did notice that running the entire OS as native skylake plus avx512 decreased build time in following builds.
Although I’m inclined to believe that compiling gxx itself with maximum optimization can improve performance, this article also just builds a compiler with a different configuration and: e.g. distribution gcc compiles with --enable-default-ssp, which causes distribution gcc to include an extra security feature (plausibly, at some cost in compile time). There are other such flags.
(Indeed, the performance improvement is larger than we usually see for just tweaking compiler flags.)