2 ms·
I don't think this is snake oil. The reasons that are typically given for not automatically pre-compiling headers (we're not talking about manually specified pr
by IshKebab 12y ago
I don't think this is snake oil. The reasons that are typically given for not automatically pre-compiling headers (we're not talking about manually specified pre-compiled headers here) can all be worked around.
For example, some might say that you can't automatically cache headers because of code like this:
// file1.cpp
#include "foo.h"
// file2.cpp
#define float double
#include "foo.h"
But if you're a bit clever about it you should be able to cache opportunistically and then detect if your cache is invalidated.
- yrnkrn 12y agoI am the prinicipal developer of zapcc. We have added a FAQ http://www.zapcc.com/faq/ http://www.zapcc.com/faq/ and more tech details in the cfe-dev mailing list http://lists.cs.uiuc.edu/pipermail/cfe-dev/2015-May/043174.html http://lists.cs.uiuc.edu/pipermail/cfe-dev/2015-May/043174.h... To the point, zapcc will not reprocess foo.h. This is a limitation. However, zapcc does deal with templates instantiations and such correctly and fast, such as boost various libraries, Eigen and LLVM source code.