Well, the best way to explain my question are two examples:
Example 1:
You created yourself a framework or engine of some kind MyLibrary, and you created it as a .lib with maximum optimization parameters. Now you include the headers and link . lib in the new MyImplementation project. The project uses most of the functions of MyLibrary, and when you are done, you create the project (again with maximum optimization).
Example 2:
Again, you have the same library, but instead of creating it, you will leave it open with the source code . Then you create the same MyProject that includes the headers, and you create MyProject with maximum optimization.
So, will Example 2 work faster since the compiler has access to the entire source code (framework / engine + project in which you use it)?
source share