aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/dev-hub.c
diff options
context:
space:
mode:
authorZhang Chen <chen.zhang@intel.com>2022-01-14 13:09:00 +0800
committerJason Wang <jasowang@redhat.com>2022-02-14 11:50:44 +0800
commita5f038e2c5e262ded63869a9e4bdf4951821e480 (patch)
tree93f831f789b483f41937d37de8f637bd3626ff48 /hw/usb/dev-hub.c
parente29919c93d19118610d64de9deb9c223024c0bc6 (diff)
downloadqemu-a5f038e2c5e262ded63869a9e4bdf4951821e480.zip
qemu-a5f038e2c5e262ded63869a9e4bdf4951821e480.tar.gz
qemu-a5f038e2c5e262ded63869a9e4bdf4951821e480.tar.bz2
net/colo-compare.c: Optimize compare order for performance
COLO-compare use the glib function g_queue_find_custom to dump another VM's networking packet to compare. But this function always start find from the queue->head(here is the newest packet), It will reduce the success rate of comparison. So this patch reversed the order of the queues for performance. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Reported-by: leirao <lei.rao@intel.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions