Skip to content

Eagerly free Thunk cached results when unneeded #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Conversation

jpsamaroo
Copy link
Member

Builds off of JuliaData/MemPool.jl#76 to allow the scheduler to eagerly free cache task results when unneeded (no further user handles to the task, and no more scheduler-internals downstream dependencies on the task). This simply speeds up the process of freeing memory that the GC will already end up freeing on the next cycle.

Uses the new MemPool destructor functionality to eagerly clean up Thunk
cached results once no more EagerThunk handles exist for the Thunk. Will
either free the cache immediately, or attempt to do so upon finishing
each Thunk.
@jpsamaroo jpsamaroo merged commit 2110d62 into master Jan 17, 2024
@jpsamaroo jpsamaroo deleted the jps/chained-dtors branch January 17, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant