Shard implementation notes - saalfeldlab/n5 GitHub Wiki
General support
- Will the N5 format support sharding?
- Will
N5Reader
andN5Writer
have shard methods?
If the N5Reader
and N5Writer
have shard methods, then the the readers / writers for the N5 format will have to have those methods,
and so will either have to implement them, or UnsupportedOperationException
or similar, which would be confusing / misleading.
Responsibility and delegation
- Is sharding a property of a reader/writer or a dataset?
Should
Choices for defaults and backward compatibility
- Should we aim to have all existing methods
readBlock
andwriteBlock
work for sharded data.
Yes, absolutely. If not, ALL old code will have to be re-written.
- Should we aim to have old methods be as performant as possible.
Yes, absolutely.
- Is it possible that using only old methods will be as performant as using newer methods when dealing with shards.
Certainly not realistic. Likely not possible.