aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <[email protected]>2015-11-05 09:55:08 +0100
committerChristian Borntraeger <[email protected]>2015-11-30 12:47:04 +0100
commitc896939f7cff767091b5d84587cd144e5d3613b7 (patch)
tree33dedfeaca80a17888e1c3bf06a010cadf2ea759 /lib/string_helpers.c
parente09fefdeeb517ff653516dea8a882ce001e99237 (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