mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Higher baseline cost
This commit is contained in:
parent
38cda27144
commit
7e00934619
1 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,8 @@ struct CostVisitor : AstVisitor
|
||||||
}
|
}
|
||||||
else if (AstExprInterpString* expr = node->as<AstExprInterpString>())
|
else if (AstExprInterpString* expr = node->as<AstExprInterpString>())
|
||||||
{
|
{
|
||||||
Cost cost = 0;
|
// Baseline cost of string.format
|
||||||
|
Cost cost = 3;
|
||||||
|
|
||||||
for (auto innerExpression : expr->expressions)
|
for (auto innerExpression : expr->expressions)
|
||||||
cost += model(innerExpression);
|
cost += model(innerExpression);
|
||||||
|
|
Loading…
Add table
Reference in a new issue