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.
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.