On Mon, Aug 26, 2013 at 06:23:09PM -0400, Ehsan Akhgari wrote: > On 2013-08-26 6:16 PM, Mike Shal wrote: > >On 08/25/2013 12:05 PM, Ehsan Akhgari wrote: > >>Note that the code itself (and not just its size) being compiled can also > >>change the compilation time, as the compiler needs to perform things such > >>as template instantiation, Koenig name look-ups, etc. Those factors will > >>not change by reducing the #include dependencies. > >> > >> > >This tool only seems to measure the size of the .cpp file, not the size > >of the pre-processed source seen by the compiler. It would be > >interesting to see if the numbers are more consistent with that taken > >into account, or if it still varies wildly because of the features used > >by the code. > > Oh, I didn't realize that! That makes their measurement pretty much > useless. ;-)
Not necessarily. You can take that as being exactly the point being made, and it has some value. If your preprocessed source is 40 times bigger than the plain source, there might be something wrong. Mike _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform