Skip to content

scifio.save unusable for images with large number of planes #122

@NicoKiaru

Description

@NicoKiaru

Hi!

It's an issue with scifio, but it makes labkit unusable if the number of planes is big.
I need to segment files with > 60k planes (200 timepoints, 300 slices, 1 channel). The segmentation is pretty fast, even in cpu mode, however, saving the resulting image is astronomically slow. Each plane (350 x 350 pixels) takes about a second to be saved... This means that my image will take around 17 hours to be saved (around 10 Gb final, thus ~ 170 kb /s !!)

I think, in a situation a bit similar to ome/bioformats#4204, the ifd are fetched way too often.

Here's a visual vm dump during the save operation showing the getifd operation:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions