mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: Use SmallVec for descriptor chains
Rather than instantiating a vector for parsing the descriptor chain in advance instead use a SmallVec bounded by the expected length of the descriptor chain. This removes vector allocations from those paths. As smallvec was already a block dependency move it to a workspace dependency and use it from there. Fixes: #5079 Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -105,6 +105,7 @@ rustls = { version = "0.23.40", default-features = false, features = [
|
||||
sha2 = "0.11.0"
|
||||
signal-hook = "0.4.4"
|
||||
signal-hook-registry = "1.4.8"
|
||||
smallvec = "1.15.1"
|
||||
thiserror = "2.0.18"
|
||||
uuid = { version = "1.23.2" }
|
||||
wait-timeout = "0.2.1"
|
||||
|
||||
Reference in New Issue
Block a user