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

Memory leak in the FeatureShakemap #287

Closed
wants to merge 1 commit into 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 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.

2 participants