mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block_util: Use SmallVec for I/O requests
The number of buffers in the request is usually one so by using SmallVec the number of heap allocations can be significantly reduced. DHAT reports: Before: dhat: Total: 1,166,412 bytes in 40,383 blocks After: dhat: Total: 623,852 bytes in 8,157 blocks Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -88,6 +88,7 @@ dependencies = [
|
||||
"libc",
|
||||
"log",
|
||||
"qcow",
|
||||
"smallvec",
|
||||
"thiserror",
|
||||
"versionize",
|
||||
"versionize_derive",
|
||||
|
||||
Reference in New Issue
Block a user