Skip to content

Commit

Permalink
Hotfix: increase zarr chunk cache size (#6639)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Nov 14, 2022
1 parent c8e8770 commit 293b16f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class DatasetArray(relativePath: DatasetPath,
protected val chunkReader: ChunkReader =
ChunkReader.create(store, header)

// cache currently limited to 100 MB per array
// cache currently limited to 1 GB per array
private lazy val chunkContentsCache: Cache[String, MultiArray] = {
val maxSizeBytes = 1000 * 1000 * 100
val maxSizeBytes = 1000L * 1000 * 1000
val maxEntries = maxSizeBytes / header.bytesPerChunk
AlfuCache(maxEntries)
AlfuCache(maxEntries.toInt)
}

// @return Byte array in fortran-order with little-endian values
Expand Down

0 comments on commit 293b16f

Please sign in to comment.