mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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 async_work_sender: mpsc::UnboundedSender<PendingFfiAsyncWork>,
|
||||||
pub callback: NonNull<v8::Function>,
|
pub callback: NonNull<v8::Function>,
|
||||||
pub context: NonNull<v8::Context>,
|
pub context: NonNull<v8::Context>,
|
||||||
pub parameters: Vec<NativeType>,
|
pub parameters: Box<[NativeType]>,
|
||||||
pub result: NativeType,
|
pub result: NativeType,
|
||||||
pub thread_id: u32,
|
pub thread_id: u32,
|
||||||
pub waker: Option<Waker>,
|
pub waker: Option<Waker>,
|
||||||
|
@ -578,7 +578,7 @@ where
|
||||||
async_work_sender,
|
async_work_sender,
|
||||||
callback,
|
callback,
|
||||||
context,
|
context,
|
||||||
parameters: args.parameters.clone(),
|
parameters: args.parameters.clone().into(),
|
||||||
result: args.result.clone(),
|
result: args.result.clone(),
|
||||||
thread_id,
|
thread_id,
|
||||||
waker: None,
|
waker: None,
|
||||||
|
|
Loading…
Reference in a new issue