On Fri, Oct 30, 2015 at 12:10:11PM +0100, Gerd Hoffmann wrote: > From: Peter Lieven <p...@kamp.de> > > 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 <p...@kamp.de> > > [ added a comment describing the non-obvious optimization ] > > Signed-off-by: Gerd Hoffmann <kra...@redhat.com> > --- > ui/vnc-jobs.c | 8 ++++++++ > 1 file changed, 8 insertions(+)
Reviewed-by: Daniel P. Berrange <berra...@redhat.com> Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|