Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualjwezorek

Posted 08 August 2012 - 10:35 AM

Are you using lots of templates yourself or boost libraries that are essentially template (i.e. all in header files) libraries?

Template instantiation can be slow. If your own code is using lots of templates try using explicit instantiation. Otherwise, if you're using something like boost::spirit, et. al., then you just have to expect long compile times. I mean there are things you can do to mitigate but anything that is doing extensive template meta-programming is just really slow to build.

#2jwezorek

Posted 08 August 2012 - 10:34 AM

Are you using lots of templates yourself or boost libraries that are essentially template (i.e. all in header files) libraries?

Template instantiation can be slow. If your own code is using lots of templates try using explicit instantiation. Otherwise, if you're using something like boost::spirit, et. al., then you just have to expect long compile times. I mean there are things you can do to mitigate but anything that is doing extensive template meta-programming is just really slow.

#1jwezorek

Posted 08 August 2012 - 10:31 AM

Are you using lots of templates yourself or boost libraries that are essentially template (i.e. all in header files) libraries?

PARTNERS