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

Possible memory-leak in bindMethods #102

Closed
gurupras opened this issue Aug 13, 2022 · 0 comments · Fixed by #103
Closed

Possible memory-leak in bindMethods #102

gurupras opened this issue Aug 13, 2022 · 0 comments · Fixed by #103

Comments

@gurupras
Copy link
Contributor

First, I'm not sure if this issue is limited to bindMethods, but that's what shows up in my profile, so I'm reporting it that way.

I observed that a huge number of sets were being created by emittery and never being cleaned up. Upon investigating, it looks like these sets are being created to store the various event-handler functions for event names but these sets are never destroyed and the map keys never cleared out when all of the handlers are removed.

For example, here's a snapshot of my memory profile:
image

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 a pull request may close this issue.

1 participant