3 ms·
There are tricks to avoid it if you really want to. Precompiled headers, force instantiating templates you need with LTO enabled and caching. Merging source fil
by AstralStorm 9y ago
There are tricks to avoid it if you really want to. Precompiled headers, force instantiating templates you need with LTO enabled and caching. Merging source files in the build system (possible thanks to ODR). Calling the compiler with many source files at once to use compiler cache.
The remaining inefficiency is supposed to go away with the upcoming module system.
- kbwt 9y ago> The remaining inefficiency is supposed to go away with the upcoming module system. That's really not the main goal of the module system. It's more about code hygiene, no matter how much people are hoping it will completely solve the issue with compile times.