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 17:34:40 -04:00
committed by GitHub
parent 7e4c0a9688
commit 9e40df63ba
5 changed files with 48 additions and 8 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ void string::mark_input_based_on(const string & other) {
}
}
string string::append(const string & other) {
string & string::append(const string & other) {
for (const auto & part : other.parts) {
parts.push_back(part);
}