3 ms·
There are many techniques to combat compile times in C++. One of the more easy solutions is to not use heavily templated header-only libraries too much, which i
by lasagnaphil 7y ago
There are many techniques to combat compile times in C++. One of the more easy solutions is to not use heavily templated header-only libraries too much, which is precisely what the architecture astronaut mentioned in the article did.
Many people say that templates in C++ is a zero-cost feature, but it slows down compile times so much up to the point that you can't call it "zero-cost". I think it's just another tradeoff that C++ developers have to make - between generic code, performant code, and fast-to-compile code.