Skip to content

Commit 5937c19

Browse files
committed
corrected docs, DECODE_THREADS works on macOS
1 parent f5a7720 commit 5937c19

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pillow_heif/options.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
DECODE_THREADS = 4
77
"""Maximum number of threads to use for decoding images(when it is possible)
88
9-
When use pillow_heif as a plugin you can set it with: `register_*_opener(decode_threads=8)`
10-
11-
.. note:: Currently do not work on macOS, will be fixed in `0.9.1` version"""
9+
When use pillow_heif as a plugin you can set it with: `register_*_opener(decode_threads=8)`"""
1210

1311

1412
THUMBNAILS = True

tests/options_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def test_decode_threads():
8787
start_time_multiply_threads = perf_counter()
8888
open_heif(test_image, convert_hdr_to_8bit=False).load()
8989
total_time_multiply_threads = perf_counter() - start_time_multiply_threads
90-
# decoding in multiply threads should be faster at least by 15%
91-
assert total_time_one_thread > total_time_multiply_threads * 1.15
90+
# decoding in multiply threads should be faster at least by 12%
91+
assert total_time_one_thread > total_time_multiply_threads * 1.12
9292
finally:
9393
options.DECODE_THREADS = 4
9494

0 commit comments

Comments
 (0)