3 ms·
For complex projects, precompiled headers are massive, and sometimes slow you down! In several big C++ source bases that I've worked with, we reversed the proc
by oppositelock 8y ago
For complex projects, precompiled headers are massive, and sometimes slow you down!
In several big C++ source bases that I've worked with, we reversed the process - at compile time, concatenate all the source files together, include everything you need just once. It's massively faster than precompiled headers, at the cost of sometimes running out of compiler heap, and inability to parallelize builds. The loss of parallelism was offset by the much faster compilation, though.