![]() |
Boost : |
From: Ivan Matek (libbooze_at_[hidden])
Date: 2025-02-12 14:13:27
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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk