[ 
https://issues.apache.org/jira/browse/MESOS-1582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14973328#comment-14973328
 ] 

James Peach commented on MESOS-1582:
------------------------------------

I spent some more time trying to see whether there was a specific source if 
build slowness. http://fpaste.org/283530/14457915/ is my result for 
{{./src/docker/docker.cpp}}. It looks to me like a death-by-a-thousand-cuts 
situation, where the incremental cost of unnecessary templates and header-file 
implementations adds up slowly. It didn't seem to me that in this case there 
were any easy wins, though it is easy for me to believe that including 
{{master/master.hpp}} is expensive.

Using -ftime-report, clang spends most of it's time (64%) in "Clang front-end 
timer", and I think that gcc is spending it's time in template instantiation 
and codegen:

{code}
phase parsing           :   3.00 (23%) usr   1.40 (85%) sys   4.87 (33%) wall  
571872 kB (39%) ggc
phase lang. deferred    :   3.23 (25%) usr   0.04 ( 2%) sys   3.26 (22%) wall  
398303 kB (27%) ggc
phase opt and generate  :   5.49 (43%) usr   0.19 (12%) sys   5.69 (38%) wall  
446259 kB (31%) ggc
template instantiation  :   3.80 (30%) usr   0.09 ( 5%) sys   3.78 (25%) wall  
506551 kB (35%) gcc
{code}

> Improve build time.
> -------------------
>
>                 Key: MESOS-1582
>                 URL: https://issues.apache.org/jira/browse/MESOS-1582
>             Project: Mesos
>          Issue Type: Epic
>          Components: build
>            Reporter: Benjamin Hindman
>
> The build takes a ridiculously long time unless you have a large, parallel 
> machine. This is a combination of many factors, all of which we'd like to 
> discuss and track here.
> I'd also love to actually track build times so we can get an appreciation of 
> the improvements. Please leave a comment below with your build times!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to