You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How hard would be be to have sub-chunk eager indexing? I'm asking because that seems really challenging for cases like shuffle. How do you know the next indexed entry won't be later in the buffer, causing a performance hit later on?
Why cache at the codec level rather than the array level?
Could the caching and indexing happen at the zarrs/tensorstore level?
I think the mentioned case-study docs are missing
no direct translation from a Zarr V2 codec to a Zarr V3 codec
For clarification, does this mean that the translations are not yet written or that they're not directly translatable?
On the numcodecs section, I think we should do some benchmarking about the Cython parts. It seems like the codecs themselves are pretty fine, it's just the packaging and dependencies that make them hard to work with. I'm concerned that 'eliminate numcodecs dependency' is biased by how challenging the packaging has been. I am interested in whether we can redeem numcodecs via a modular package structure, with each codec optional for zarr-python, rather than eliminating it completely. My reasoning is that some people will probably want to use numcodecs and there are no other maintainers, so improving it will lead to less work overall relative to abandoning it in search of new codecs.
Stores
What is the benefit of the stores API being stateless? are there downsides?
How hard would be be to have sub-chunk eager indexing? I'm asking because that seems really challenging for cases like shuffle. How do you know the next indexed entry won't be later in the buffer, causing a performance hit later on?
I don't think I understand this, can you sketch out the API?
Why cache at the codec level rather than the array level?
Could the caching and indexing happen at the zarrs/tensorstore level?
IMO it's clean if an array has one source of decoded chunks. So if we introduce an efficient way to fetch chunks, it should probably be expressed via that single source of decode chunks. That could be a stack of codecs implemented in python, or a chunk encoding / decoding routine implemented in tensorstore / zarrs.
For clarification, does this mean that the translations are not yet written or that they're not directly translatable?
Both! we need to iterate over the old codecs and sort them into categories like "convertible with small modifications" (v2 gzip) or "not convertible at all" (v2 pickle codec).
On the numcodecs section, I think we should do some benchmarking about the Cython parts. It seems like the codecs themselves are pretty fine, it's just the packaging and dependencies that make them hard to work with. I'm concerned that 'eliminate numcodecs dependency' is biased by how challenging the packaging has been. I am interested in whether we can redeem numcodecs via a modular package structure, with each codec optional for zarr-python, rather than eliminating it completely. My reasoning is that some people will probably want to use numcodecs and there are no other maintainers, so improving it will lead to less work overall relative to abandoning it in search of new codecs.
Absolutely. if the current cython implementations are performance competitive vs potential replacements, then that's a reason to keep them. The first step is to do the comparison. A lot of those cython implementations were written a long time ago, so I bet there are performance improvements we can make (even in cython). And making numcodecs a monorepo would be great! The goal is exactly what you propose: for any codec that requires external (non-stdlib) dependencies, users should be able to install zarr-python without that codec if they choose.
What is the benefit of the stores API being stateless? are there downsides?
the big win is that a stateless store can be serialized to another language easily. This is substantially harder for a store that requires references to process-internal state. Stores that declare external named resources (s3, http, local file system) are cheap to serialize to e.g. JSON, and that can be easily given to another implementation.
Activity
d-v-b commentedon May 11, 2026
I don't think I understand this, can you sketch out the API?
IMO it's clean if an array has one source of decoded chunks. So if we introduce an efficient way to fetch chunks, it should probably be expressed via that single source of decode chunks. That could be a stack of codecs implemented in python, or a chunk encoding / decoding routine implemented in tensorstore / zarrs.
Both! we need to iterate over the old codecs and sort them into categories like "convertible with small modifications" (v2 gzip) or "not convertible at all" (v2 pickle codec).
Absolutely. if the current cython implementations are performance competitive vs potential replacements, then that's a reason to keep them. The first step is to do the comparison. A lot of those cython implementations were written a long time ago, so I bet there are performance improvements we can make (even in cython). And making numcodecs a monorepo would be great! The goal is exactly what you propose: for any codec that requires external (non-stdlib) dependencies, users should be able to install zarr-python without that codec if they choose.
the big win is that a stateless store can be serialized to another language easily. This is substantially harder for a store that requires references to process-internal state. Stores that declare external named resources (s3, http, local file system) are cheap to serialize to e.g. JSON, and that can be easily given to another implementation.