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:
parent
687a939588
commit
0aa2d7c9c1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue