
23 Mar
2010
23 Mar
'10
9:16 p.m.
From: Alexander Churanov <alexanderchuranov@gmail.com> Subject: Re: [boost] Should Boost adopt pimpl/d-pointer as much as it can? To: boost@lists.boost.org 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