IMPROVING C++ PERFORMANCE USING TEMPORARIES

Citation
A. Dingle et Th. Hildebrandt, IMPROVING C++ PERFORMANCE USING TEMPORARIES, Computer, 31(3), 1998, pp. 31
Citations number
7
Categorie Soggetti
Computer Science Software Graphycs Programming","Computer Science Hardware & Architecture","Computer Science Hardware & Architecture","Computer Science Software Graphycs Programming
Journal title
ISSN journal
00189162
Volume
31
Issue
3
Year of publication
1998
Database
ISI
SICI code
0018-9162(1998)31:3<31:ICPUT>2.0.ZU;2-M
Abstract
Object-oriented programs are simpler to implement and maintain than th ose using traditional programming methods. At the same time, object-or iented programs create and destroy objects, incurring overhead costs. They also cause unnamed temporary objects of the same type to be creat ed in the scope of the calling routine. Both of these factors affect t he performance of object-oriented programs compared to procedural prog rams. For these reasons, programmers view object-oriented programming as wasteful compared to procedural programming. When runtime efficienc y is important, developers have a legitimate reason to reject OOP. In this article, the authors propose to improve the efficiency of the und erlying implementation by reusing temporaries. They report experimenta l results showing large speedups using this method.