Home
last modified time | relevance | path

Searched hist:c3d6899c5e67dfd7ff195eccc10541f3b7e141a7 (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/ui/
H A Dvnc-jobs.cdiff c3d6899c5e67dfd7ff195eccc10541f3b7e141a7 Fri Oct 30 06:10:11 CDT 2015 Peter Lieven <pl@kamp.de> vnc: recycle empty vs->output buffer

If the vs->output buffer is empty it will be dropped
by the next qio_buffer_move_empty in vnc_jobs_consume_buffer
anyway. So reuse the allocated buffer from this buffer
in the worker thread where we otherwise would start with
an empty (unallocated buffer).

Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1446203414-4013-17-git-send-email-kraxel@redhat.com

[ added a comment describing the non-obvious optimization ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>