Optimise templates.
Build Throughput Series: Template Metaprogramming Fundamentals
by Xiang Fan
From the article:
Template metaprogramming is popular and seen in many code bases. However, it often contributes to long compile times. When investigating build throughput improvement opportunities in large codebases, our finding is that more than one million template specializations and template instantiations is quite common and often provides optimization opportunities for significant improvement.
In this blog post, I will walk through the differences between template specialization and template instantiation and how they are processed in the MSVC compiler...
Add a Comment
Comments are closed.