Skip to content

GatherToNpy/Zarr could pre-allocate stores when number of spike is known #4787

Description

@alejoe91

See #4703 (comment)

Currently the GatherToNpy and GatherToZarr sequentially write chunk of pipeline data as they are available. While this is needed when we don't know the number of peaks per chunk, in cases when this is known (ie. the pipeline has a PeakRetriever or SpikeRetriever), the gather classes could pre-allocate the entire arrays and write to the exact location. This would speed things up especially for zarr, since the current implementation might require a lot of rechunking under the hood

Activity

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

    performancePerformance issues/improvements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions