Skip to content

Add N5Factory method to return an unsafe N5Reader/Writer supplier, that handles safety checking only once #3

Description

@cmhulbert

Currently, N5Factory will return an instance of an N5Reader or N5Writer for a given container. It may be more performant, especially for remote backends, to extract the safety checking that currently happens inside the N5Reader/Writer constructors such that the saftey checks occur only a single time, and then "unsafe" (but guaranteed safe by the initial check) constructors can be used to avoid the overhead.

For example, currently N5Readers check that a directory exists, and also check the version tag in the attributes.json. Similarly, remote backend have additional checks.

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