Skip to content

Commit

Permalink
move to lmdb backend
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Mar 31, 2024
1 parent f637a7a commit 76462fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def zarr_new_dataset(
chunk_size=512, # tested , blosc1 / chunk_size=512 / buffer_size (2^18~20) = seems pretty good
compressor=None,
):
store = zarr.LMDBStore(filename, map_size=2**38, writemap=True, map_async=True)
z = zarr.open(
filename,
store=store,
mode="w",
)
if compressor is None:
Expand Down

0 comments on commit 76462fb

Please sign in to comment.