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

前端 未结 1 1589
无人及你
无人及你 2021-01-05 04:05

Sized Deallocation feature has been proposed to include in C++1y. However I wanted to understand how it would affect/improve the current c++

相关标签:
1条回答
  • 2021-01-05 04:20

    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.

    0 讨论(0)
提交回复
热议问题