These are chat archives for boostorg/hana

3rd
Dec 2015
Jason Rice
@ricejasonf
Dec 03 2015 20:48
@MaikKlein Regarding your question about 'previous template instantiations', precompiled header files might be the answer. I'm not sure to what extent it would make a difference, but it shaves off about 5 seconds (from 8 seconds total) from my convoluted primality test. A more extreme case could be tested by fiddling with the upper end of the range in expensive.hpp.
As you can see in the Makefile you can compile a .pch just like you can an object file.
Jason Rice
@ricejasonf
Dec 03 2015 23:54
Apparently clang has modules implemented. I wonder if it would be feasible to export that map variable and tell clang to fully evaluate/optimize the AST to output a pch or header file that leaves all of the cruft behind.