Dynamic memoization for energy efficiency in financial applications

Giovanni Agosta, Marco Bessi, Eugenio Capra, Chiara Francalanci

2011 · 16 citations · 10 references

Concepts

TL;DR

Software applications directly influence IT energy consumption, and while algorithm optimization can improve energy efficiency, it often requires domain knowledge and detailed code analysis that is impractical for large code bases. This paper proposes a dynamic memoization approach to enhance software energy efficiency. The method identifies pure functions suitable for tabulation, automatically caches results of frequent calls, and is implemented in a prototype tested on financial functions. Empirical evaluation demonstrates average energy savings of 74 % and time performance savings of 79 %.

Abstract

Software applications directly impact on IT energy consumptions as they indirectly guide hardware operations. Optimizing algorithms has a direct beneficial impact on energy efficiency, but it requires domain knowledge and an accurate analysis of the code, which may be infeasible and too costly to perform for large code bases. In this paper we present an approach based on dynamic memoization to increase software energy efficiency. This implies to identify a subset of pure functions that can be tabulated and to automatically store the results corresponding to the most frequent invocations. We implemented a prototype software system to apply memoization and tested it on a set of financial functions. Empirical results show average energy savings of 74% and time performance savings of 79%.

References

10