Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cmhulbert opened this issue Mar 1, 2023 · 0 comments

Comments

@cmhulbert
Copy link
Collaborator

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.

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

No branches or pull requests

1 participant