[
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)