Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Previewing a lines output makes memory use balloon #679

Closed
SamCarlberg opened this issue Oct 7, 2016 · 0 comments · Fixed by #680
Closed

Previewing a lines output makes memory use balloon #679

SamCarlberg opened this issue Oct 7, 2016 · 0 comments · Fixed by #680

Comments

@SamCarlberg
Copy link
Member

SamCarlberg commented Oct 7, 2016

This is caused by tens of thousands of Pointer$NativeDeallocator being created every second (~30k-40k) because two new points are being created for every line. Each point has a deallocator object, so this results in a ton of useless objects.

Resolution

Reuse a single Point object and modify it's coordinates before drawing the line endpoints

Note: this will need to be fixed for the next release

@AustinShalit AustinShalit added this to the v1.5.0 milestone Oct 7, 2016
JLLeitschuh pushed a commit that referenced this issue Oct 10, 2016
* Fix massve memory leak in lines previews

* Fix memory leak in blobs preview
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants