[cfe-dev] [RFC] Embedding compilation database info in object files.

David Chisnall David.Chisnall at cl.cam.ac.uk
Fri Jul 19 02:08:17 PDT 2013


On 19 Jul 2013, at 10:01, Chandler Carruth <chandlerc at google.com> wrote:

> There is no need to have it be a separate process at all. Just start a background thread and join it before terminating.

Have you benchmarked the difference between clang with and without pthreads linked in?  A lot of libc and STL things become more expensive (including malloc(), although not by much) when pthreads are linked, even if they're not used.  These may be dwarfed by the CPU time of the compilation, but it isn't free.

David





More information about the cfe-dev mailing list