On Mon, Mar 02, 2020 at 09:47:33AM -0500, Scott Kostyshak wrote: > On Sun, Mar 01, 2020 at 10:00:08PM +0100, Pavel Sanda wrote: > > On Sun, Mar 01, 2020 at 03:33:13PM -0500, Richard Kimberly Heck wrote: > > > But my understanding, anyway, is that the intent was to reduce the size of > > > includes where possible. André was really big on this for a while. > > > > Yeah, overall compilation time was the reason. > > Thanks for the explanations, Riki and Pavel. That makes sense. string.h > is 18k here as well. I had no idea it was that beefy.
Also my guess is that stl headers are heavily templated which would make it also slower to compile... Very long time ago I made benchmarks in which full compile time would take ~9 mins and monolithic build avoiding recompiling includes for each cpp file would be ~5mins (all on a single core). So in principle avoiding unnecessary includes is worth trying, though it's not straightforward to translate the results above into this situation. Simple experiment would be to include string header into each cpp file and see the difference in recompilation of the whole tree... Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel