It seems that the compilers usually implement #include "path/file.h"
by firstly searching a path relative to the currently processed source file folder.
So the question is: how does it influence in practice the compilation time when using #include
with quotes versus triangular brackets?
The question is only for the case when the "path/to/file/filename.h"
is a relative path to the currently processed header, because otherwise it would behave similar to #include <…>
.
It seems that the correctly set #include "…"
should be faster for your own files than #include <…>
in a large project (500 files or more).
Edit: Other questions about difference between #include "…"
and #include <…>
don't seem address compile time. Also, the standard is vague but most compilers do use "…"
to search in the current folder first.
Edit2 Reworded the title and the question. I'll accept the answer for any of these C++ compilers: Visual Studio, Intel, Clang, Gcc.