We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ebe63 commit 0b7f98dCopy full SHA for 0b7f98d
blosc2/__init__.py
@@ -242,7 +242,9 @@ class Tuner(Enum):
242
The blosc2 version + date.
243
"""
244
# Internal Blosc threading
245
-nthreads = ncores = detect_number_of_cores() // 2
+nthreads = ncores = detect_number_of_cores()
246
+if ncores > 1:
247
+ nthreads = ncores // 2
248
"""Number of threads to be used in compression/decompression.
249
250
# Protection against too many threads
0 commit comments