Re: [Qemu-devel] [PATCHv2 3/6] ui/vnc: optimize dirty bitmap tracking

2013-11-21 Thread Eric Blake
On 11/21/2013 01:51 AM, Peter Lieven wrote: > vnc_update_client currently scans the dirty bitmap of each client > bitwise which is a very costly operation if only few bits are dirty. > vnc_refresh_server_surface does almost the same. > this patch optimizes both by utilizing the heavily optimized >

[Qemu-devel] [PATCHv2 3/6] ui/vnc: optimize dirty bitmap tracking

2013-11-21 Thread Peter Lieven
vnc_update_client currently scans the dirty bitmap of each client bitwise which is a very costly operation if only few bits are dirty. vnc_refresh_server_surface does almost the same. this patch optimizes both by utilizing the heavily optimized function find_next_bit to find the offset of the next