
On 20 December 2011 18:55, John Maddock <boost.regex@virgin.net> 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: http://mateusz.loskot.net/tmp/boost/geometry/boost-geometry-test-algorithm-u... 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 libs/geometry/test/geometry_test_common.hpp so I didn't put this header into pch.hpp, but it should be feasible to solve later. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net