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
Add a `array.target_shard_size_bytes` to [`zarr.config`][] to allow users to set a maximum number of bytes per-shard when `shards="auto"` in, for example, [`zarr.create_array`][].
`shards` can be `"auto"` as well, in which case the `array.target_shard_size_bytes` setting can be used to control the size of shards (i.e., the size of the shard will be as close to without being bigger than `target_shard_size_bytes`); otherwise, a default is used.
85
+
84
86
### Chunk memory layout
85
87
86
88
The order of bytes **within each chunk** of an array can be changed via the
# for each axis, if there are more than 8 chunks along that axis, then put
243
-
# 2 chunks in each shard for that axis.
244
-
ifa_shape//c_shape>8:
245
-
_shards_out+= (c_shape*2,)
290
+
# The previous heuristic was `a_shape // c_shape > 8` and now, with target_shard_size_bytes, we only check that the shard size is less than the array size.
0 commit comments