
Emil Dotchevski wrote:
wrote: I second that -- I am quite curious about how much overhead various headers/libraries impose when you include tham, and when you actually use them (which seems to be a lot more expensive on msvc). Quick compile-test-correct cycles are important to me. I don't know the best way to even measure this.
In my opinion it is pointless to measure compile times. Instead, headers should be designed in a way that allows user code to not "see" anything that is not strictly necessary to compile a particular user cpp file.
So are you recommending that path should not be part of a public interface, since a path can be represented by a string? Or are you saying that it is not worth measuring the cost of all-header libraries that include too much per header since they should be refactored anyways? -- John