1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -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 GitHub
parent 687a939588
commit 0aa2d7c9c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,