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

Memory leak in the FeatureShakemap #287

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ekomrak
Copy link

@ekomrak ekomrak commented Apr 28, 2024

Every time the render method is executed new Color object is created for the intensity. New constant Colors are created for the Level class to improve the memory leak issue.
Screenshot 2024-04-28 113014

@ekomrak ekomrak changed the base branch from main to develop April 28, 2024 10:00
@xspanger3770
Copy link
Owner

Thanks! These changes indeed reduce the heap allocations, but the new Color objects were eventually freed, so it was not a memory leak, that would be way worse :)

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