Skip to content
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

Fix memory leak plugin caching #561

Merged
merged 2 commits into from Oct 29, 2021
Merged

Fix memory leak plugin caching #561

merged 2 commits into from Oct 29, 2021

Conversation

JoranAngevaare
Copy link
Member

What is the problem / what does the code in this PR do
Fix memory leak as described in #559

Can you briefly describe how it works?
In #545 we allowed temp plugins to be cached. This however causes issues as if one is doing this for many runs, you are starting to make a lot of these guys in your registry without cleanup or without re-use.

To fix this, we use the deterministic hash such that the next time, we are asking for the same plugin to load the data. This will actually also loading and computing targets on event-level by all the perks of the caching mechanism.

One thing I'm still very surprised about is the amount of data remnant in the temporary merge only plugins.

Can you give a minimal working example (or illustrate with a figure)?
Please checkout the linked issue

Copy link
Collaborator

@WenzDaniel WenzDaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

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

Successfully merging this pull request may close these issues.

None yet

2 participants