diff options
author | Igor Mammedov <imammedo@redhat.com> | 2015-06-16 18:33:35 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-07-01 10:12:12 +0200 |
commit | bcfeacab45e6d419c6bafc0e57ea4b1125e23231 (patch) | |
tree | c994f9533d20d043525fd5730629ed3a97bd60b0 /drivers/scsi | |
parent | 8b0a9d42301e45d501d751074a6f767fded680b1 (diff) |
vhost: use binary search instead of linear in find_region()
For default region layouts performance stays the same
as linear search i.e. it takes around 210ns average for
translate_desc() that inlines find_region().
But it scales better with larger amount of regions,
235ns BS vs 300ns LS with 55 memory regions
and it will be about the same values when allowed number
of slots is increased to 509 like it has been done in kvm.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions