0

I understand the difference between #include <filename> and #include "filename" as answered in this question.

Is there any performance difference between them? If yes, how do you prove the performance difference in this case? What is the best use case for each?

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
June Choi
  • 3
  • 1
  • 1
    There is no performance difference. `#include` directives are resolved by your compiler when it compiles your code, not when your program runs. – john Aug 12 '20 at 08:05
  • 1
    The only performance diff is compile time which should not be a reason to choose one or the other. – Ted Lyngmo Aug 12 '20 at 08:05
  • 1
    Does this answer your question? [What is the difference between #include and #include "filename"?](https://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename) – Mansoor Aug 12 '20 at 08:05
  • 1
    The use case is normally `<>` for system headers, and `""` for user headers. The use case applies because of the way compilers generally interpret the two different types of include, YMMV. – john Aug 12 '20 at 08:06

0 Answers0