<div dir="ltr"><div class="gmail_extra">On Wed, Oct 2, 2013 at 6:16 AM, Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank" class="cremed">yaron.keren@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For example, including iostream also includes:</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">
iostream:38:</div><div dir="ltr">ios:216:</div><div dir="ltr">__locale:15:</div><div dir="ltr">
string:439:</div><div dir="ltr">algorithm:627:</div><div dir="ltr">memory:603:</div><div dir="ltr">tuple</div><div><br></div><div>That's tons of baggage which slows down compilation significantly.</div></div></blockquote>
</div><br>Have you measured it? Especially for non-trivial translation units? I have tried, and been unable to measure significant (> 5%) changes by minimizing standard library includes.</div><div class="gmail_extra"><br>
</div><div class="gmail_extra">Also, we're working on C++ modules which will largely eliminate *any* cost associated with "bundling" together N different headers as part of a library.</div></div>