DocumentCode :
2062492
Title :
Evaluation of a high-performance object reuse dynamic memory allocation policy for C++ programs
Author :
Lee, Woo Hyong ; Chang, J. Morris ; Hasan, Yusuf
Author_Institution :
Dept. of Comput. Sci., Illinois Inst. of Technol., Chicago, IL, USA
Volume :
1
fYear :
2000
fDate :
14-17 May 2000
Firstpage :
386
Abstract :
The importance of dynamic memory management has increased significantly as there is a growing number of developments in object-oriented programs. Many studies show that dynamic memory management is one of the most expensive components in many software systems. In C++ programs especially, it tends to have prolific object creation and deletion. These objects tend to have short life-spans. This paper presents a dynamic memory allocation strategy to reuse these objects to speed up the object management. This object reuse scheme is implemented through the overloading C++ operators, new and delete. The C++ allocation patterns are studied thoroughly in this paper. Over 90% of objects are not bigger than 512 bytes and allocated prolifically. The proposed scheme is made feasible by reuse of these small objects. Our allocation scheme is simple and fast because it requires no splitting and no coalescing, and reduces the number of malloc() calls. It maintains its own free-list which is used for object reuse. The experimented results, based on the proposed allocation scheme, show that allocation speed is increased up to four times compared to other well-known algorithms. Our scheme is purely source-code oriented and built on top of malloc. Therefore, this approach is portable for application to existing code and safe to use with different mallocs.
Keywords :
C++ language; object-oriented programming; software reusability; storage allocation; storage management; C++ programs; dynamic memory management; free-list; high-performance object reuse dynamic memory allocation policy evaluation; mallocs; object creation; object deletion; object reuse scheme; object-oriented programs;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
High Performance Computing in the Asia-Pacific Region, 2000. Proceedings. The Fourth International Conference/Exhibition on
Conference_Location :
Beijing, China
Print_ISBN :
0-7695-0589-2
Type :
conf
DOI :
10.1109/HPC.2000.846583
Filename :
846583
Link To Document :
بازگشت