Skip to content

reader vs converted and performance #12

Closed

Description

@LucaMarconato

@giovp we need to test if we can use readers (as the one in your new pr) or if we need for some large datasets to use converters. The reason is that Dask allows to represent lazily the data in both cases, but the operations with a reader could be not performant.

For example, say that you want to read a .ome.tiff file, or rotate an image. With dask-image you can have a Dask array that represents in-memory lazily both of them, construct a SpatialData object and, say, view it in napari. But the visualization will be really poor. Here what would help is to first save the object to .zarr, and then reinitialize the array to read from disk. Now the visualization will be performant.

Activity

  1. LucaMarconato commented on Jan 30, 2023

    @LucaMarconato
    MemberAuthor

    Now with scverse/spatialdata#117 when we save to disk the spatialdata object is re-read and the performance problem is addressed. We just have to make aware the user that the data should be saved to have better performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions