google / brunsli

Practical JPEG Repacker
MIT License
730 stars 51 forks source link

Unable to finish the compress/decompress task when enables multithread mode on Android #123

Closed xinlake closed 2 years ago

xinlake commented 2 years ago

We ported Brunsli algorithm to Android system using Cmake and NDK and have built an app to verify the compress and decompress, it works well.

But when we enable the multithread mode add_compile_definitions(BRUNSLI_EXPERIMENTAL_GROUPS) the algorithm can't finish the compress/decompress task, it runs forever.

xinlake commented 2 years ago

I replaced the thread pool implementation and this problem has been solved, Thank you. We are trying to improve the performance on Android, Is there any suggestion?