Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Replace Map-based cache of query hashes with private property to fix #26. #29

Merged
merged 2 commits into from
Oct 22, 2018

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Oct 22, 2018

Making the cached hash a property of the query object instead of a value in a persistent Map should fix #26, since the hash can now be garbage collected whenever the query object is collected, and query objects are no longer kept alive by the calculated Map.

Should fix #26, since the hash can now be garbage collected whenever the
query object is collected, and query objects are no longer kept alive by
the calculated Map.
@codecov-io

This comment has been minimized.

@benjamn benjamn merged commit 50eb5d8 into master Oct 22, 2018
@benjamn benjamn deleted the issue-26-fix-query-hash-cache-memory-leak branch October 22, 2018 22:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible memory leak in query cache
2 participants