English

Expression Templates Revisited: A Performance Analysis of the Current ET Methodology

Performance 2012-08-15 v1 Programming Languages

Abstract

In the last decade, Expression Templates (ET) have gained a reputation as an efficient performance optimization tool for C++ codes. This reputation builds on several ET-based linear algebra frameworks focused on combining both elegant and high-performance C++ code. However, on closer examination the assumption that ETs are a performance optimization technique cannot be maintained. In this paper we demonstrate and explain the inability of current ET-based frameworks to deliver high performance for dense and sparse linear algebra operations, and introduce a new "smart" ET implementation that truly allows the combination of high performance code with the elegance and maintainability of a domain-specific language.

Keywords

Cite

@article{arxiv.1104.1729,
  title  = {Expression Templates Revisited: A Performance Analysis of the Current ET Methodology},
  author = {Klaus Iglberger and Georg Hager and Jan Treibig and Ulrich Ruede},
  journal= {arXiv preprint arXiv:1104.1729},
  year   = {2012}
}

Comments

16 pages, 7 figures

R2 v1 2026-06-21T17:51:46.537Z