File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 66DECODE_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
1412THUMBNAILS = True
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments