Skip to content

Commit

Permalink
benchmark fixes for lmdb/pi
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Mar 31, 2024
1 parent 03834e5 commit 2eaa231
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions spf/sdrpluto/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,8 @@ def benchmark(
if store is None or store == "directory":
store = zarr.DirectoryStore(filename)
elif store == "lmdb":
store = zarr.LMDBStore(filename)
z = zarr.open(
filename,
mode="w",
shape=(2, total_samples),
chunks=(1, 1024 * chunk_size),
dtype="complex128",
compressor=compressor,
store = zarr.LMDBStore(
filename, map_size=2**40, writemap=True, map_async=True
)
else:
raise NotImplementedError
Expand Down

0 comments on commit 2eaa231

Please sign in to comment.