According to: http://yosefk.com/c++fqa/templates.html#fqa-35.10, C++ Templates are slow. Though theoretically, templates can be as efficient as straightforward code or more efficient than straightforward code. However, commercial compilers don't optimize templates code in that level. So practically templates are slower. Also, some other complexities may arise while using templates. FAQs about templates http://yosefk.com/c++fqa/templates.html Great resource to review […]

Read more of this post