3 ms·
The thing about C++ compilation time is that if you care you can spend the time to optimize it. Our app takes ~40 seconds to compile and run tests on a decent m
by ben-schaaf 6y ago
The thing about C++ compilation time is that if you care you can spend the time to optimize it. Our app takes ~40 seconds to compile and run tests on a decent machine (16 cores).
- ainar-g 6y agoThis is interesting. What techniques are you using? Pimpl? Custom, non-STL containers?
- kcolford 6y agoI find headers with templates are always the problem. So external template instantiation and pre compiled headers can solve a lot of first time compilation slowness. Pimpl is more for reducing how much you have to change headers forcing a recompile during development. It's also really handy for keeping binary compatibility with published dynamic libraries so that you don't have to recompile dependants.
- logicchains 6y agoThat only works if you can clean up slow-compiling code faster than other people are writing more slow-compiling code.
- monocasa 6y agoOr... you set up your code standards to enforce the same constraints. Everyone pitches in and keeps it clean.