Boost logo

Boost :

Subject: Re: [boost] How to make tests building faster?
From: Mateusz Łoskot (mateusz_at_[hidden])
Date: 2011-12-21 09:37:46

On 20 December 2011 18:55, John Maddock <boost.regex_at_[hidden]> wrote:
>> Another idea would be to make better usage of pre-compiled
>> headers. These are supported by both gcc and msvc.  Again
>> would require non-trivial changes in build/test infrastructure.
> Boost.Build supports precompiled headers already: Boost.Math uses it to
> significantly speed up compile times.

I have done a quick test in libs/geometry/test/algorithms only.
I followed Boost.Math and patched relevant files:
There is room for improvements, adding more headers to pch.hpp, etc.
but despite it's a rough
test the results are promising:

Using Visual Studio 2010, b2 command in libs/geometry/test/algorithms
builds 37 programs:

1) Without PCH: 6:19 min:sec
2) With PCH: 2:36

I have noticed compile error for string_from_type<T> specialisations
in utility header
so I didn't put this header into pch.hpp, but it should be feasible to
solve later.

Best regards,

Mateusz Loskot,

Boost list run by bdawes at, gregod at, cpdaniel at, john at