[jira] [Commented] (MESOS-9798) How to reduce compile time after had changed/improved source code?

2019-09-17 Thread Benjamin Bannier (Jira)


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

Benjamin Bannier commented on MESOS-9798:
-

[~rchatsiri], you should take advantage of parallelized processing when 
invoking {{make}}, i.e., your step (3) above could be (assuming your dev 
machine has 12 cores)
{noformat}
$ make -j 12
{noformat}

This assumes that your {{MAKEFLAGS}} environment variable does not already 
contain {{-j 12}} or similar. With that {{make}} would perform e.g., up to 12 
parallel compilation processes; steps like linking (e.g., of {{libmesos}}) are 
still mostly sequential and become a bottleneck for highly parallelized builds 
(linking {{libmesos}} can take up to a minute depending on your hardware, used 
linker, and flags).

> How to reduce compile time after had changed/improved source code?
> --
>
> Key: MESOS-9798
> URL: https://issues.apache.org/jira/browse/MESOS-9798
> Project: Mesos
>  Issue Type: Improvement
>  Components: cmake
>Affects Versions: 1.8.0
> Environment: Linux firework-vm01 4.9.0-9-amd64 #1 SMP Debian 
> 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux
>Reporter: chatsiri
>Priority: Minor
>  Labels: newbie
>
> Hello all, 
>      I'm have changed variables in src/ directory finished, but compiler 
> using long time to finished build steps. How can reduces compile time per 
> component or source directory? Such as an simple steps below
>  # I'm add new member function to class Docker on docker.hpp. This class 
> declares on file at docker directory.
>  # Compile source again from build directory. This directory create on the 
> base source code directory same src/ , bin/ and include/.
>  # Come to build path with 
>  ## $cd build
>  ## $../configure --disable-python --disable-java --enable-debug 
> --enable-fast-install
>  ## $make
>  ## $sudo make install.   
> In steps No.3. Compiler used long time compiles source code. How we can 
> reduce compile time per source directory that we had changed its?



--
This message was sent by Atlassian Jira
(v8.3.2#803003)


[jira] [Commented] (MESOS-9798) How to reduce compile time after had changed/improved source code?

2019-05-28 Thread Joseph Wu (JIRA)


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

Joseph Wu commented on MESOS-9798:
--

This is an architectural problem with how large is the codebase is, and how the 
code is structured.  The Mesos agent takes the longest to compile, mostly 
because 80% or so of the Mesos source files are compiled into the agent.  That 
includes {{src/docker/docker.hpp}}.

> How to reduce compile time after had changed/improved source code?
> --
>
> Key: MESOS-9798
> URL: https://issues.apache.org/jira/browse/MESOS-9798
> Project: Mesos
>  Issue Type: Improvement
>  Components: cmake
>Affects Versions: 1.8.0
> Environment: Linux firework-vm01 4.9.0-9-amd64 #1 SMP Debian 
> 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux
>Reporter: chatsiri
>Priority: Minor
>  Labels: newbie
>
> Hello all, 
>      I'm have changed variables in src/ directory finished, but compiler 
> using long time to finished build steps. How can reduces compile time per 
> component or source directory? Such as an simple steps below
>  # I'm add new member function to class Docker on docker.hpp. This class 
> declares on file at docker directory.
>  # Compile source again from build directory. This directory create on the 
> base source code directory same src/ , bin/ and include/.
>  # Come to build path with 
>  ## $cd build
>  ## $../configure --disable-python --disable-java --enable-debug 
> --enable-fast-install
>  ## $make
>  ## $sudo make install.   
> In steps No.3. Compiler used long time compiles source code. How we can 
> reduce compile time per source directory that we had changed its?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)