From 7e00934619fdd5977bd9069eaade1a29d39596a5 Mon Sep 17 00:00:00 2001 From: Kampfkarren Date: Tue, 26 Jul 2022 21:05:33 -0700 Subject: [PATCH] Higher baseline cost --- Compiler/src/CostModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Compiler/src/CostModel.cpp b/Compiler/src/CostModel.cpp index ce0d5617..593a4bbf 100644 --- a/Compiler/src/CostModel.cpp +++ b/Compiler/src/CostModel.cpp @@ -219,7 +219,8 @@ struct CostVisitor : AstVisitor } else if (AstExprInterpString* expr = node->as()) { - Cost cost = 0; + // Baseline cost of string.format + Cost cost = 3; for (auto innerExpression : expr->expressions) cost += model(innerExpression);