<div dir="rtl"><div dir="ltr">Yes, noticed this before. iostream pulls a significant part of libcxx:</div><div dir="ltr"><br></div><div dir="ltr"> <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032330.html">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032330.html</a><br>
</div><div dir="ltr"><br></div><div dir="ltr">There are real unobvious dependecies in libcxx</div><div dir="ltr"><br></div><div dir="ltr"> <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032349.html">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032349.html</a><br>
</div><div dir="ltr"><br></div><div dir="ltr">I'm not sure if the #includes could be removed. Would probably require breaking up large headers into smaller ones.<br></div><div dir="ltr"><br></div><div dir="ltr">Yaron</div>
<div dir="ltr"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2014-09-04 15:36 GMT+03:00 "C. Bergström" <span dir="ltr"><<a href="mailto:cbergstrom@pathscale.com" target="_blank">cbergstrom@pathscale.com</a>></span>:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi<br>
<br>
Would patches for cleaning up unnecessary #include for libc++ be accepted? In general it seems like it has followed the rather poorly designed GNU STL rather than being more strict.<br>
<br>
A simple preprocessed hello world which only #include <iostream><br>
<br>
CC -E hello.cxx -std=c++11 > hello-libcxx.e.cxx<br>
<br>
du -sh *.e.cxx<br>
532K hello-stdcxx.e.cxx<br>
1.3M hello-libcxx.e.cxx<br>
<br>
The effects of this cascade into being a measurable performance difference later on in the compiler. (My numbers may not be exactly llvm upstream though - ymmv) Basically the Module size and other things are larger as a result.<br>
<br>
Thoughts/feedback?<br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>