From 3b3aa7a2ef2900e237cb71f7cbdedf4ba555312c Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Tue, 12 Nov 2024 13:22:46 +0100 Subject: [PATCH] init source arr to size --- core/src/main/java/lucee/transformer/util/SourceCode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/lucee/transformer/util/SourceCode.java b/core/src/main/java/lucee/transformer/util/SourceCode.java index dffd85ce4b..a8b3156820 100755 --- a/core/src/main/java/lucee/transformer/util/SourceCode.java +++ b/core/src/main/java/lucee/transformer/util/SourceCode.java @@ -54,7 +54,7 @@ public SourceCode(SourceCode parent, String strText, boolean writeLog) { this.hash = strText.hashCode(); lcText = new char[text.length]; - ArrayList arr = new ArrayList(); + ArrayList arr = new ArrayList((int)strText.lines().count()); for (int i = 0; i < text.length; i++) { pos = i;