mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-24 15:56:12 +00:00
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:
parent
7e4c0a9688
commit
9e40df63ba
5 changed files with 48 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue