-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Eliminate unnecessary Python reloading which causes memory leaks. #827
Conversation
This work also tipped me off to the lack of inplace callback cleanup in the python module. That has been corrected too |
@wcawijngaards I hate to ping directly, but some visibility to this would be appreciated. Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good, thanks!
I have some feedback and would need to do some local testing but this could be part of the next release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with further testing! Valgrind at least locally stopped reporting the leaks.
Reloading the Python interpreter for every HUP/reload is unnecessary. Python does not handle this very well and leaks memory.