3 ms·
> I don't think I've ever worked on a nontrivial C++ project that compiled in three seconds. No C++ project compiles in 3 seconds, but your "change a single so
by mort96 1y ago
> I don't think I've ever worked on a nontrivial C++ project that compiled in three seconds.
No C++ project compiles in 3 seconds, but your "change a single source file and compile+link" time is often on the order of a couple of seconds. As an example, I'm working on a project right now where a clean build takes roughly 30 seconds (thanks to recent efforts to improve header include hygiene and move stuff from headers into source files using PIMPL; it was over twice that before). However, when I changed a single source file and ran 'time ninja -C build' just now, the time to compile that one file and re-link the project took just 1.5 seconds.
I know that there are some projects which are much slower to link, I've had to deal with Chromium now and then and that takes minutes just to link. But most projects I've worked with aren't that bad.