Sized Deallocation Feature In Memory Management in C++1y

余生长醉 提交于 2019-11-30 19:16:02

As in your quote:

[Modern memory allocators] for space efficiency reasons, do not store the size of the object near the object.

Increasing the size of every allocation in order to add explicit size information is obviously going to use more memory than alternatives such as storing the size information once per allocation pool, or supplying the information upon deallocation.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!