From 68b1ee0d1d3eac482a701159e60da74847efc5ca Mon Sep 17 00:00:00 2001 From: connorskees Date: Sun, 8 Jan 2023 22:43:54 +0000 Subject: [PATCH] allocate arg vec with capacity during eval --- crates/compiler/src/evaluate/visitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/src/evaluate/visitor.rs b/crates/compiler/src/evaluate/visitor.rs index 2118017..457e3f6 100644 --- a/crates/compiler/src/evaluate/visitor.rs +++ b/crates/compiler/src/evaluate/visitor.rs @@ -1980,7 +1980,7 @@ impl<'a> Visitor<'a> { arguments: ArgumentInvocation, span: Span, ) -> SassResult { - let mut positional = Vec::new(); + let mut positional = Vec::with_capacity(arguments.positional.len()); for expr in arguments.positional { let val = self.visit_expr(expr)?;