Skip to content

Commit 20dd6a5

Browse files
committed
increase default number of threads for blosc; resolves #33
1 parent 87ef89b commit 20dd6a5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/release.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Release notes
1111
section on :ref:`tutorial_compression` for an example.
1212
* When using the Blosc compressor, the default internal compression library
1313
is now 'lz4'.
14+
* The default number of internal threads for the Blosc compressor has been
15+
increased to a maximum of 8 (previously 4).
1416

1517
.. _release_1.0.0:
1618

zarr/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
else:
2222
ncores = multiprocessing.cpu_count()
2323
blosc.init()
24-
# diminishing returns beyond 4 threads?
25-
blosc.set_nthreads(min(4, ncores))
24+
blosc.set_nthreads(min(8, ncores))
2625
atexit.register(blosc.destroy)

0 commit comments

Comments
 (0)