From b213b3466b06fea8bf85aacc482da8235f8fd45e Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Mon, 26 Aug 2024 09:33:06 +0100 Subject: [PATCH] perf(codegen): inline `Codegen::print_list` --- crates/oxc_codegen/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/oxc_codegen/src/lib.rs b/crates/oxc_codegen/src/lib.rs index ff47797a5932ed..7109eb51bedcea 100644 --- a/crates/oxc_codegen/src/lib.rs +++ b/crates/oxc_codegen/src/lib.rs @@ -411,6 +411,7 @@ impl<'a> Codegen<'a> { self.needs_semicolon = false; } + #[inline] fn print_list(&mut self, items: &[T], ctx: Context) { let mut iter = items.iter(); let Some(item) = iter.next() else { return };