summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorPeter Lieven2014-12-02 12:05:50 +0100
committerStefan Hajnoczi2015-01-13 14:43:29 +0100
commit51a2219bdceed16e81c6e2e2f08aed39c579728f (patch)
treee2fd7192232fa66fbed743b304a7b776d4140b93 /include/block
parentcoroutine: drop qemu_coroutine_adjust_pool_size (diff)
downloadqemu-51a2219bdceed16e81c6e2e2f08aed39c579728f.tar.gz
qemu-51a2219bdceed16e81c6e2e2f08aed39c579728f.tar.xz
qemu-51a2219bdceed16e81c6e2e2f08aed39c579728f.zip
coroutine: try harder not to delete coroutines
Placing coroutines on the global pool should be preferrable, because it can help all threads. But if the global pool is full, we can still try to save some allocations by stashing completed coroutines on the local pool. This is quite cheap too, because it does not require atomic operations, and provides a gain of 15% in the best case. Signed-off-by: Peter Lieven <pl@kamp.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 1417518350-6167-8-git-send-email-pbonzini@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions