jinja : fix quadratic cost in gather_string_parts (#27034)

* jinja : fix quadratic cost in gather_string_parts

* fix some comments

* remove test
This commit is contained in:
0
2026-08-14 23:34:40 +02:00
committed by GitHub
parent 7e4c0a9688
commit 9e40df63ba
5 changed files with 48 additions and 8 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ value binary_expression::execute_impl(context & ctx) {
return res;
}
for (int64_t i = 0; i < repeat; ++i) {
res->val_str = res->val_str.append(str);
res->val_str.append(str);
}
return res;
}