|
Boost : |
Subject: Re: [boost] Should Boost adopt pimpl/d-pointer as much as it can?
From: Artyom (artyomtnk_at_[hidden])
Date: 2010-03-23 17:16:44
> From: Alexander Churanov <alexanderchuranov_at_[hidden]>
> Subject: Re: [boost] Should Boost adopt pimpl/d-pointer as much as it can?
> To: boost_at_[hidden]
> Date: Tuesday, March 23, 2010, 9:00 PM
> Artyom,
>
> Did you try precompiling header files?
>
> My results are:
>
> inclusion 2,6 s (-02+link)
> precompilation 1,45 s (-02+link)
> diff *1.8*
>
> gcc 4.2, boost 1.41
>
> Alexander Churanov
There is one big issue with precompiled headers -- you only have one
such header. So it is all or nothing, This is problematic, I tinkered
a lot with PCH and various configurations. So far the best:
- Use forward declarations
- Include only that you need
Gives much better performance then
- Include everything in PCH
- Include PCH everywhere.
Artyom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk