1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-05 13:59:01 -05:00

perf(ext/ffi): Use Box<[NativeType]> in CallbackInfo parameters (#19032)

This commit is contained in:
Aapo Alasuutari 2023-05-08 10:57:38 +03:00 committed by David Sherret
parent 5e848f0d1b
commit 5826ea5682

View file

@ -96,7 +96,7 @@ struct CallbackInfo {
pub async_work_sender: mpsc::UnboundedSender<PendingFfiAsyncWork>,
pub callback: NonNull<v8::Function>,
pub context: NonNull<v8::Context>,
pub parameters: Vec<NativeType>,
pub parameters: Box<[NativeType]>,
pub result: NativeType,
pub thread_id: u32,
pub waker: Option<Waker>,
@ -578,7 +578,7 @@ where
async_work_sender,
callback,
context,
parameters: args.parameters.clone(),
parameters: args.parameters.clone().into(),
result: args.result.clone(),
thread_id,
waker: None,