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

How to make sure a cached Cell is not GCed? #23

Open
tpietzsch opened this issue Mar 8, 2024 · 0 comments
Open

How to make sure a cached Cell is not GCed? #23

tpietzsch opened this issue Mar 8, 2024 · 0 comments
Labels

Comments

@tpietzsch
Copy link
Member

Recently, in the context of BigStitcher-Spark, I worked on prefetching Cells of a cached CellImg from S3. The idea is to touch a pixel (Type) from each Cell. We then want to hold on to those Types, so that the Cell is not GCed.

The question is whether that is actually sufficient to hold on to the Type. What do we actually need to hold a strong reference to? The Type, the Sampler, or the Cell?

This should be documented somewhere!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant