Skip to content

Handle generic CacheControl in BVV spimdata loading - #31

Merged
tpietzsch merged 1 commit into
bigdataviewer:masterfrom
ekatrukha:spimdata-loading-cache-handling
Jun 2, 2026
Merged

tpietzsch merged 1 commit into
bigdataviewer:masterfrom
ekatrukha:spimdata-loading-cache-handling

Conversation

@ekatrukha

Copy link
Copy Markdown
Contributor

This change removes the assumption that ViewerImgLoader#getCacheControl() of SpimData always returns a
VolatileGlobalCellCache.

Previously, the code performed an unconditional cast in order to register the cache control and clear the cache. This could fail for imgloaders returning a different CacheControl implementation.

The updated version:

  • works with the generic CacheControl interface when registering
    cache controls
  • only calls clearCache() when the implementation is actually a
    VolatileGlobalCellCache

Basically, the same way it is done in BDV.

@tpietzsch
tpietzsch merged commit 742a8db into bigdataviewer:master Jun 2, 2026
1 check passed
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.

2 participants