C++堆上对象内存“按需分配”  

C++ Heap Object Memory "DAMA"

在线阅读下载全文

作  者:杜薇薇[1] 张翼燕[1] 瞿春柳 

机构地区:[1]中国科学技术信息研究所,北京100038 [2]北京掌上通网络技术有限公司,北京100083

出  处:《微计算机应用》2009年第12期67-75,共9页Microcomputer Applications

摘  要:内存分配已经是一个古老的话题,但是缺省的内存分配器由于对内存使用需求的缺失,尤其是在C++这个小对象繁多的环境,缺省的new操作符显得有些力不从心。文章从对内存使用需求入手,剖析内存需求不同时,不同的优化策略。并针对内存归还的时机和小对象这两种情况,结合new和delete操作符的特点给出了相应的优化算法,提升了内存分配和归还的效率,简化了对现有系统的性能优化。Memory allocation is an old topic, but the default memory allocator for memory usage due to lack of demand, especially in C + + , this small object of the target environment, the default new operator seemed unable to. In this paper, the demand from the start of the memory usage, memory requirements analysis is not at the same time, different optimization strategies. And the timing for the return of memory and small object both cases, a combination of new and delete operators are given the characteristics of the optimization algorithm to improve the memory efficiency of distribution and return of.

关 键 词:内存分配 NEW 小对象 AVL 

分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象