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

Wip/perf/memory #546

Merged
merged 25 commits into from
Aug 13, 2024
Merged

Wip/perf/memory #546

merged 25 commits into from
Aug 13, 2024

Conversation

cmhulbert
Copy link
Collaborator

No description provided.

perf: ValueDisplayListener doesn't regenerate interpolated data source per query
This is a memory optimization. when downsampling LMT over a cached cell image, empty blocks at higher resolution levels are still created as full-sized backing VolatileLabelMultisetArray data. This is needed for writing, but in this case, it allocates a lot of memory, and holds on for it long enough that it can cause Heap memory issues.

To this end, the downsampler cell can now return empty blocks, indicated by VolatileLabelMultisetArray data with size 0. In this case, we can just skip the block, which saves iterations as well.
fix(test): labelblocklookup serialization test
@cmhulbert cmhulbert merged commit c50b9a4 into master Aug 13, 2024
5 checks passed
@cmhulbert cmhulbert deleted the wip/perf/memory branch August 13, 2024 14:17
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.

1 participant