为什么要使用内存池技术呢?
主要有两个原因:
1、减少new/malloc、delete/free次数,减少运行时间;
2、避免内存碎片,避免开发人员忘记释放内存造成内存泄露
连接:http://www.cnblogs.com/bangerlee/archive/2011/08/31/2161421.html
nginx内存池分析:http://blog.chinaunix.net/uid-24830931-id-3764858.html
为什么要使用内存池技术呢?
主要有两个原因:
1、减少new/malloc、delete/free次数,减少运行时间;
2、避免内存碎片,避免开发人员忘记释放内存造成内存泄露
连接:http://www.cnblogs.com/bangerlee/archive/2011/08/31/2161421.html
nginx内存池分析:http://blog.chinaunix.net/uid-24830931-id-3764858.html