[cfe-dev] libc++ clean-up
Yaron Keren
yaron.keren at gmail.com
Thu Sep 4 05:56:01 PDT 2014
Yes, noticed this before. iostream pulls a significant part of libcxx:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032330.html
There are real unobvious dependecies in libcxx
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-October/032349.html
I'm not sure if the #includes could be removed. Would probably require
breaking up large headers into smaller ones.
Yaron
2014-09-04 15:36 GMT+03:00 "C. Bergström" <cbergstrom at pathscale.com>:
>
> Hi
>
> 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.
>
> A simple preprocessed hello world which only #include <iostream>
>
> CC -E hello.cxx -std=c++11 > hello-libcxx.e.cxx
>
> du -sh *.e.cxx
> 532K hello-stdcxx.e.cxx
> 1.3M hello-libcxx.e.cxx
>
> 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.
>
> Thoughts/feedback?
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140904/0d187dba/attachment.html>
More information about the cfe-dev
mailing list