I think it is useful to investigate which patterns typically causes explosion in the number of generated classes. Then we can look for solutions, which eventually and hopefully contribute to a faster compilation process and possibly increased runtime performance.

  1. For each template x that has a call to elements in its own definition, every template call to x that has a body (eg x(){ body() }) will cause the compiler to lift the body of the template call to a newly generated template. I think this is currently the main cause of template(=generated classes) explosion.
Submitted by Elmer van Chastelet on 21 November 2013 at 11:26

Log in to post comments