|
|
|
|
|
by alextingle
525 days ago
|
|
Precompiled headers are a terrible misfeature. I ban them in any code base I am responsible for. They encourage the use of large header files that group unrelated concerns. In turn that makes small changes in header files produce massive, unnecessary rebuilds of zillions of object files. The clean practice is to push down #includes into .c files, and to ruthlessly eliminate them if at all possible. That speeds up partial rebuilds enormously. And once you adopt that clean practice, pre-compiled headers yield no benefit anyway. |
|