Skip to content

Commit 0aeb1b8

Browse files
committed
genotype benchmark
1 parent 4860df3 commit 0aeb1b8

9 files changed

+1811
-590
lines changed

docs/release.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Release notes
1313
is now 'lz4'.
1414
* The default number of internal threads for the Blosc compressor has been
1515
increased to a maximum of 8 (previously 4).
16+
* Added convenience functions :func:`zarr.blosc.list_compressors` and
17+
:func:`zarr.blosc.get_nthreads`.
1618

1719
.. _release_1.0.0:
1820

notebooks/.ipynb_checkpoints/dask_copy-checkpoint.ipynb

Lines changed: 137 additions & 79 deletions
Large diffs are not rendered by default.

notebooks/.ipynb_checkpoints/dask_count_alleles-checkpoint.ipynb

Lines changed: 55 additions & 63 deletions
Large diffs are not rendered by default.

notebooks/.ipynb_checkpoints/genotype_benchmark_compressors-checkpoint.ipynb

Lines changed: 516 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/dask_copy.ipynb

Lines changed: 138 additions & 80 deletions
Large diffs are not rendered by default.

notebooks/dask_count_alleles.ipynb

Lines changed: 55 additions & 63 deletions
Large diffs are not rendered by default.

notebooks/genotype_benchmark_compressors.ipynb

Lines changed: 516 additions & 0 deletions
Large diffs are not rendered by default.

zarr/blosc.c

Lines changed: 384 additions & 305 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zarr/blosc.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ cdef extern from "blosc.h":
2525

2626
void blosc_init()
2727
void blosc_destroy()
28+
int blosc_get_nthreads()
2829
int blosc_set_nthreads(int nthreads)
2930
int blosc_set_compressor(const char *compname)
3031
char* blosc_list_compressors()
@@ -70,6 +71,13 @@ def list_compressors():
7071
return text_type(blosc_list_compressors(), 'ascii').split(',')
7172

7273

74+
def get_nthreads():
75+
"""Get the number of threads that Blosc uses internally for compression
76+
and decompression.
77+
."""
78+
return blosc_get_nthreads()
79+
80+
7381
def set_nthreads(int nthreads):
7482
"""Set the number of threads that Blosc uses internally for compression
7583
and decompression.

0 commit comments

Comments
 (0)