Re: [Spice-devel] [PATCH spice-server] reds-stream: Small syscall optimisation

2017-03-23 Thread Christophe Fergeau
On Mon, Mar 13, 2017 at 09:51:26AM +, Frediano Ziglio wrote: > Handle single chunk writev as normal write. > From some test more than 60% of the times writev is called with 1 as > counter. We can easily and very cheaply turn this call to a simpler > write avoiding the need to pass the array to

[Spice-devel] [PATCH spice-server] reds-stream: Small syscall optimisation

2017-03-13 Thread Frediano Ziglio
Handle single chunk writev as normal write. From some test more than 60% of the times writev is called with 1 as counter. We can easily and very cheaply turn this call to a simpler write avoiding the need to pass the array to the kernel. Signed-off-by: Frediano Ziglio --- server/reds-stream.c |