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

Cleaned memory leak from FunctionMatcherMixin + Cached Execute output #87

Merged
merged 3 commits into from
Mar 28, 2022

Conversation

AmroAlJundi
Copy link
Contributor

The Execute function in FunctionMatcherMixin was suffering from a memory leak in the cases where it was carrying out conversions. Fixed it and added a version of Execute in which the conversion results are cached for users to use.

Changes:

  • Added CachedExecute which will convert formats, execute preprocessing, and keep the results of conversion.
  • Changed Execute to delete the conversion results to avoid memory leaks.

@AmroAlJundi AmroAlJundi added type: bug Something isn't working priority: now Critical priority labels Mar 27, 2022
@AmroAlJundi AmroAlJundi linked an issue Mar 27, 2022 that may be closed by this pull request
@AmroAlJundi AmroAlJundi merged commit 7309897 into develop Mar 28, 2022
@AmroAlJundi AmroAlJundi deleted the feature/cached_formats branch March 28, 2022 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: now Critical priority type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FunctionMatcherMixin suffers from memory leaks
2 participants