Re: [libvirt] [PATCH] qemu: optimize JSON event handler lookup

2012-04-11 Thread Eric Blake
On 04/10/2012 06:53 PM, Wen Congyang wrote: At 04/11/2012 06:47 AM, Eric Blake Wrote: Probably in the noise, but this will let us scale more efficiently as we recognize ever more qemu events. * src/qemu/qemu_monitor_json.c (eventHandlers): Sort. (eventSearch): New helper function.

[libvirt] [PATCH] qemu: optimize JSON event handler lookup

2012-04-10 Thread Eric Blake
Probably in the noise, but this will let us scale more efficiently as we recognize ever more qemu events. * src/qemu/qemu_monitor_json.c (eventHandlers): Sort. (eventSearch): New helper function. (qemuMonitorJSONIOProcessEvent): Optimize event lookup. --- In reply to:

Re: [libvirt] [PATCH] qemu: optimize JSON event handler lookup

2012-04-10 Thread Wen Congyang
At 04/11/2012 06:47 AM, Eric Blake Wrote: Probably in the noise, but this will let us scale more efficiently as we recognize ever more qemu events. * src/qemu/qemu_monitor_json.c (eventHandlers): Sort. (eventSearch): New helper function. (qemuMonitorJSONIOProcessEvent): Optimize event