Use ArrayVec for kcall fd nums, 8% better perf!
This commit is contained in:
+1
-1
@@ -310,7 +310,7 @@ fn call_normal(
|
||||
return Err(Error::new(EINVAL));
|
||||
}
|
||||
|
||||
let mut nums = Vec::new();
|
||||
let mut nums = arrayvec::ArrayVec::<_, 2>::new();
|
||||
|
||||
let current_lock = context::current();
|
||||
let consume = flags.contains(CallFlags::CONSUME);
|
||||
|
||||
Reference in New Issue
Block a user