Skip to content

OME-TIFF: remove extra Channels all at once - #4489

Open
melissalinkert wants to merge 2 commits into
ome:developfrom
melissalinkert:ome-tiff-memory-usage-develop
Open

melissalinkert wants to merge 2 commits into
ome:developfrom
melissalinkert:ome-tiff-memory-usage-develop

Conversation

@melissalinkert

Copy link
Copy Markdown
Member

This means the MetadataStore root only needs to be reset once, which for OMEPyramidStore (with resolution annotations present) means the memory usage is substantially reduced.

The issue can be demonstrated by converting test&plateRows=16&plateCols=24&fields=6&sizeX=512&sizeY=512&sizeC=3.fake to OME-TIFF through bioformats2raw/raw2ometiff and then running showinf -nopix -omexml on the OME-TIFF. An OutOfMemoryError should occur with default memory settings for showinf, i.e. BF_MAX_MEM was unset.

With this change and the same OME-TIFF, showinf -nopix -omexml with default memory completes and prints OME-XML without error. Setting BF_MAX_MEM as low as 230m (less than half of the default) should also work.

No impact on existing tests is expected.

This means the MetadataStore root only needs to be reset once,
which for OMEPyramidStore (with resolution annotations present)
means the memory usage is substantially reduced.
@melissalinkert melissalinkert added this to the 9.0.0 milestone Oct 15, 2026
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