I want to reduce compile time of a large C++ project. I tried to use precompiled headers, interface and etc. But before I move on, I want to know whether any tool which helps de
I am not aware of any tool for betterment of the compile time, but few manual remedies, I can suggest (consider this as comment):
#include
guards with every header file, so that multiple
inclusions won't make any issuestemplate
function and classes;
remember that tempaltes become inline
by default. Too much of
templates/metaprogramming cause huge compilation time.#define
s are unnecessarily high then they would
increase preprocessing stage, which ultimately increases the
compilation time