Am 08.06.2018 um 21:20 hat Vladimir Sementsov-Ogievskiy geschrieben: > Do data compression in separate threads. This significantly improve > performance for qemu-img convert with -W (allow async writes) and -c > (compressed) options. > > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Looks correct to me, but why do we introduce a separate MAX_COMPRESS_THREADS? Can't we simply leave the maximum number of threads to the thread poll? I see that you chose a much smaller number here (4 vs. 64), but is there actually a good reason for this? Kevin