[cfe-dev] Can we make libcxx headers more modular for faster compilation?

Yaron Keren yaron.keren at gmail.com
Wed Oct 2 04:16:38 PDT 2013


For example, including iostream also includes:

iostream:38:
ios:216:
__locale:15:
string:439:
algorithm:627:
memory:603:
tuple

That's tons of baggage which slows down compilation significantly.
I guess that using std::cout does not really requires tuples.

Is it possible to break up the header files into smaller parts so that
including a header file only include the other parts it really needs rather
than the entire chain of includes as in above?

Yaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131002/177619b0/attachment.html>


More information about the cfe-dev mailing list