mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Very slow processing of large pattern console outputs
This commit is contained in:
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
Submodule lib/external/pattern_language updated: 17adb10afc...c6c63d8924
@@ -1071,12 +1071,14 @@ namespace hex::plugin::builtin {
|
||||
const auto linesToAdd = m_console->size() - lineCount;
|
||||
|
||||
|
||||
std::string content;
|
||||
for (size_t i = 0; i < linesToAdd; i += 1) {
|
||||
if (!skipNewLine)
|
||||
m_consoleEditor.InsertText("\n");
|
||||
content += '\n';
|
||||
skipNewLine = false;
|
||||
m_consoleEditor.InsertText(m_console->at(lineCount + i));
|
||||
content += m_console->at(lineCount + i);
|
||||
}
|
||||
m_consoleEditor.SetText(content);
|
||||
|
||||
m_consoleNeedsUpdate = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user