加速创建和销毁同类对象的专用内存管理器  

Specialized memory manager of accelerating to create and destroy objects of a class

在线阅读下载全文

作  者:宋伟[1] 杨连贺[1] 

机构地区:[1]天津工业大学计算机技术与自动化学院,天津300160

出  处:《仪器仪表用户》2006年第3期138-140,共3页Instrumentation

摘  要:使用了new和delete使用的内存分配系统是为通用目的而设计的。但在特殊的情形下,它并不能满足我们的需要。最常见的改变分配系统的原因是出于效率考虑:也许要创建和销毁一个特定的类的非常多的对象以至于这个运算变成了速度的瓶颈。C++允许重载new和delete来实现我们自己的存储分配方案,所以可以用它来处理问题。The memory allocation system used by new and delete is designed for general-purpose use. In special situations, however, it doesn't serve your needs. The most common reason to change the allocator is efficiency: You might be creating and destroying so many objects of a particular class that it has become a speed bottleneck. C++ allows you to ovedoad new and delete to implement your own storage allocation scheme, so you can handle problems like this.

关 键 词:内存管理器 操作符new 操作符delete 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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