diff options
author | David Hildenbrand <[email protected]> | 2015-11-05 09:55:08 +0100 |
---|---|---|
committer | Christian Borntraeger <[email protected]> | 2015-11-30 12:47:04 +0100 |
commit | c896939f7cff767091b5d84587cd144e5d3613b7 (patch) | |
tree | 33dedfeaca80a17888e1c3bf06a010cadf2ea759 /lib/string_helpers.c | |
parent | e09fefdeeb517ff653516dea8a882ce001e99237 (diff) |
KVM: use heuristic for fast VCPU lookup by id
Usually, VCPU ids match the array index. So let's try a fast
lookup first before falling back to the slow iteration.
Suggested-by: Christian Borntraeger <[email protected]>
Reviewed-by: Dominik Dingel <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions