3 ms·
> c++ has a awful compile time I have a thoery that C++ compiler writers obsession with pointless micro optimizations is because C++'s compilation model scales
by Gibbon1 7y ago
> c++ has a awful compile time
I have a thoery that C++ compiler writers obsession with pointless micro optimizations is because C++'s compilation model scales horribly. Thus they desperately want their compiler to be faster. But they are fucked because the more optimizations just slows down the compile times even more.
- pjmlp 7y agoCurrently if you don't go crazy with meta-programming, it is possible to have C++ applications still compile faster than rustc is capable of. - Use binary libraries (don't build the world from scratch) - Use incremental compilation and linking (yes I know lld support is kind of working on nightly) - Start adopting C++ modules https://devblogs.microsoft.com/cppblog/improved-linker-fundamentals-in-visual-studio-2019/ https://devblogs.microsoft.com/cppblog/improved-linker-funda... https://devblogs.microsoft.com/cppblog/msvc-backend-updates-in-visual-studio-2019-version-16-2/ https://devblogs.microsoft.com/cppblog/msvc-backend-updates-... https://devblogs.microsoft.com/cppblog/introducing-c-build-insights/ https://devblogs.microsoft.com/cppblog/introducing-c-build-i...
- MaxBarraclough 7y agoYou can disable optimisation if you want faster builds. The existence of optional optimisations isn't a problem.