Skip to content

Commit d916ccb

Browse files
Merge pull request #495 from orena1/patch-1
Update documentation for thread management
2 parents e6d602b + f38bc50 commit d916ccb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/blosc2/core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,11 @@ def free_resources() -> None:
892892
temporary space. You can use this function to release these
893893
resources when you are not going to use Blosc for a long time.
894894
895+
The number of threads can also be set via the ``BLOSC_NTHREADS`` environment
896+
variable (e.g., ``export BLOSC_NTHREADS=1``). Additionally, you may want to set
897+
``NUMEXPR_NUM_THREADS`` as well since numexpr is used under the hood
898+
(e.g., ``export NUMEXPR_NUM_THREADS=1``).
899+
895900
Examples
896901
--------
897902
>>> blosc2.free_resources()

0 commit comments

Comments
 (0)