june icon indicating copy to clipboard operation
june copied to clipboard

Early drop of owned pointers (and their contents)

Open sophiajt opened this issue 1 year ago • 0 comments

Owned pointers are fully-encapsulated, and do no leak any shared pointers with code outside of themselves. This means that once the owner of an owned pointer drops it, all of its memory can be immediately reclaimed safely, before the end of the allocation group has finished.

We could take advantage of this and immediately free the memory for reuse.

sophiajt avatar Jan 04 '24 18:01 sophiajt