Re:Tinyalloc: replacement for malloc/free in unmanaged, line...
by smileypete on Sunday January 06, 2019 @04:35PM
(#18840860)
If handles and setters/getters can be used, then it opens up the possibility of defragging or 'garbage collecting' the memory.
A neat trick could be to be able to 'trim' the data used by the handle, then when it comes to defrag time just deal with the remaining part and free up the trimmed space.
A neat trick could be to be able to 'trim' the data used by the handle, then when it comes to defrag time just deal with the remaining part and free up the trimmed space.