Skip to content

Commit 261ca6e

Browse files
committed
Make the codec default to be LZ4
1 parent 6dae239 commit 261ca6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

blosc2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class SplitMode(Enum):
8989
blosclib_version = "%s (%s)" % (VERSION_STRING, VERSION_DATE)
9090

9191
# Internal Blosc threading
92-
nthreads = ncores = detect_number_of_cores() / 2
92+
nthreads = ncores = detect_number_of_cores() // 2
9393
"""Number of threads to be used in compression/decompression.
9494
"""
9595
# Protection against too many threads
@@ -99,7 +99,7 @@ class SplitMode(Enum):
9999

100100
# Defaults for compression params
101101
cparams_dflts = {
102-
'codec': Codec.BLOSCLZ,
102+
'codec': Codec.LZ4,
103103
'codec_meta': 0,
104104
'clevel': 5,
105105
'use_dict': False,

blosc2/c-blosc2

0 commit comments

Comments
 (0)