Skip to content

Commit 1cdcbdf

Browse files
committed
fix:Bound LRU cache of _morton_order to 16
1 parent 443b5d4 commit 1cdcbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ def decode_morton_vectorized(
15031503
return out
15041504

15051505

1506-
@lru_cache
1506+
@lru_cache(maxsize=16)
15071507
def _morton_order(chunk_shape: tuple[int, ...]) -> tuple[tuple[int, ...], ...]:
15081508
n_total = product(chunk_shape)
15091509
if n_total == 0:

0 commit comments

Comments
 (0)