fix: Very slow processing of large pattern console outputs
This commit is contained in:
parent
72c2bca363
commit
18cd39270a
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 17adb10afca651bce61289bbfc4348242ec76da6
|
Subproject commit c6c63d892465557ce4c8cee2d6823857b1c69138
|
@ -1071,12 +1071,14 @@ namespace hex::plugin::builtin {
|
|||||||
const auto linesToAdd = m_console->size() - lineCount;
|
const auto linesToAdd = m_console->size() - lineCount;
|
||||||
|
|
||||||
|
|
||||||
|
std::string content;
|
||||||
for (size_t i = 0; i < linesToAdd; i += 1) {
|
for (size_t i = 0; i < linesToAdd; i += 1) {
|
||||||
if (!skipNewLine)
|
if (!skipNewLine)
|
||||||
m_consoleEditor.InsertText("\n");
|
content += '\n';
|
||||||
skipNewLine = false;
|
skipNewLine = false;
|
||||||
m_consoleEditor.InsertText(m_console->at(lineCount + i));
|
content += m_console->at(lineCount + i);
|
||||||
}
|
}
|
||||||
|
m_consoleEditor.SetText(content);
|
||||||
|
|
||||||
m_consoleNeedsUpdate = false;
|
m_consoleNeedsUpdate = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user