Skip to content

Commit

Permalink
Always enable lzf compression on the hashtable dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Oct 19, 2021
1 parent 6147e9e commit 167d8e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions versioned_hdf5/hashtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ def _create_hashtable(self):
# bytes, not number of elements)
dtype = np.dtype([('hash', 'B', (self.hash_size,)), ('shape', 'i8', (2,))])
hash_table = f['_version_data'][name].create_dataset('hash_table',
shape=(1,), dtype=dtype,
chunks=(self.chunk_size,),
maxshape=(None,))
shape=(1,), dtype=dtype,
chunks=(self.chunk_size,),
maxshape=(None,),
compression='lzf')
hash_table.attrs['largest_index'] = 0
self._indices = {}

Expand Down

0 comments on commit 167d8e1

Please sign in to comment.