Higher baseline cost

This commit is contained in:
Kampfkarren 2022-07-26 21:05:33 -07:00
parent 38cda27144
commit 7e00934619

View file

@ -219,7 +219,8 @@ struct CostVisitor : AstVisitor
}
else if (AstExprInterpString* expr = node->as<AstExprInterpString>())
{
Cost cost = 0;
// Baseline cost of string.format
Cost cost = 3;
for (auto innerExpression : expr->expressions)
cost += model(innerExpression);