By Topic

Improving C++ performance using temporaries

Sign In

Cookies must be enabled to login.After enabling cookies , please use refresh or reload or ctrl+f5 on the browser for the login options.

Formats Non-Member Member
$31 $13
Learn how you can qualify for the best price for this item!
Become an IEEE Member or Subscribe to
IEEE Xplore for exclusive pricing!
close button

puzzle piece

IEEE membership options for an individual and IEEE Xplore subscriptions for an organization offer the most affordable access to essential journal articles, conference papers, standards, eBooks, and eLearning courses.

Learn more about:

IEEE membership

IEEE Xplore subscriptions

2 Author(s)
Dingle, A. ; Seattle Univ., WA, USA ; Hilderbrandt, T.H.

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 unmanned 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 programs 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. The authors propose to improve the efficiency of the underlying implementation by reusing temporaries. They report experimental results showing large speedups using this method

Published in:

Computer  (Volume:31 ,  Issue: 3 )