Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Early drop of owned pointers (and their contents) #28

Open
Tracked by #21
sophiajt opened this issue Jan 4, 2024 · 0 comments
Open
Tracked by #21

Early drop of owned pointers (and their contents) #28

sophiajt opened this issue Jan 4, 2024 · 0 comments

Comments

@sophiajt
Copy link
Owner

sophiajt commented Jan 4, 2024

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant