commit | 124492d875d3a85580d8ed02565ecf81ed0108a8 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Thu Jan 05 16:24:27 2023 -0800 |
committer | Kelvin Zhang <zhangkelvin@google.com> | Tue Jan 10 12:09:46 2023 -0800 |
tree | d1bde3a95d8ce47c0e15ae98598c3254ad081478 | |
parent | 515c924312c1399d06d0adcbae32568cdf58a312 [diff] |
Do not create worker thread if threading isn't enabled Currently, we would create worker threads even if number of compression thread is set to 1. This works, but having context switches and data exchange between two threads is complete overhead if main thread is just blocking on the worker thread. Test: th Change-Id: I02f98ee1e0c4889dc1ae602eb06667b05796d3f0