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(cache): clean up dedupes #35

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

evanlucas
Copy link
Contributor

This fixes a memory leak in the cache for dedupes.
We were previously setting the value of each key
to undefined instead of
deleting it. This caused a slow leak
in this package that ultimately begins causing performance issues.

This fixes a memory leak in the cache for dedupes.
We were previously setting the value of each key
to undefined instead of
deleting it. This caused a slow leak
in this package that ultimately begins causing performance issues.
Copy link
Owner

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina
Copy link
Owner

Awesome spot Evan!

@evanlucas
Copy link
Contributor Author

Confimed in a higher traffic environment that this does indeed fix the leak.

@mcollina mcollina merged commit 0412c55 into mcollina:main Oct 13, 2022
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