Skip to content

Commit 93c8d57

Browse files
committedApr 17, 2024··
Add small optimization
1 parent 5795386 commit 93c8d57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎vm/ignite/src/micro_code/call.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use super::apply_builtin;
3030
/// If the closure is not of type closure or the arity of the closure does not match the number of arguments.
3131
pub fn call(mut rt: Runtime, arity: usize) -> Result<Runtime> {
3232
let mut args = Vec::new();
33+
args.reserve_exact(arity);
3334

3435
for _ in 0..arity {
3536
args.push(

0 commit comments

Comments
 (0)
Please sign in to comment.