![]() |
Boost : |
From: Ruben Perez (rubenperez038_at_[hidden])
Date: 2025-02-12 19:41:49
On Wed, 12 Feb 2025 at 15:13, Ivan Matek via Boost
<boost_at_[hidden]> wrote:
>
> On Wed, Feb 12, 2025 at 3:02â¯PM Murali Kishore via Boost <
> boost_at_[hidden]> wrote:
>
> > Hi,
> >
> > Observing compilation time increase when i include boost interprocess
> > headers. is there a way to reduce compilation time as this time going more
> > than hours in large project.
> >
>
> I have no idea about boost interprocess, but until somebody more
> knowledgeable answers here are some general tips:
>
> 1. see preprocessed file so you can check how much LOC boost
> interprocess adds
> 2. ask compiler to print include files, so you can get the idea what
> boost interprocess includes if you do not want to go over boost
> interprocess files manually and look for includes
>
> LOC is not a precise way to check for slowdowns, but it is a good proxy,
> for example
> g++-13 example.cpp -E | wc -l
> 12461
> Then you add boost interprocess headers to example, repeat the command and
> see how much code was added.
I'd advise measuring using clang and the -ftime-trace option. It
generates a flamegraph per cpp file that you can visualize in Chrome.
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk