This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Improving C++ Performance Using Temporaries
March 1998 (vol. 31 no. 3)
pp. 31-41
Object-oriented programs are simpler to implement and maintain than those using traditional programming methods. At the same time, object-oriented programs create and destroy objects, incurring overhead costs. They also cause unnamed temporary objects of the same type to be created in the scope of the calling routine. Both of these factors affect the performance of object-oriented pro grams compared to procedural programs. For these reasons, programmers view object-oriented programming as wasteful compared to procedural programming. When runtime efficiency is important, developers have a legitimate reason to reject OOP. In this article, the authors propose to improve the efficiency of the underlying implementation by reusing temporaries. They report experimental results showing large speedups using this method.
Citation:
Adair Dingle, Thomas H. Hildebrandt, "Improving C++ Performance Using Temporaries," Computer, vol. 31, no. 3, pp. 31-41, March 1998, doi:10.1109/2.660188
Usage of this product signifies your acceptance of the Terms of Use.