impr: Make sure lots of yara matches doesn't lag out the editor

This commit is contained in:
WerWolv
2024-02-23 17:49:20 +01:00
parent daf74347a3
commit 214e542da4
3 changed files with 55 additions and 15 deletions

View File

@@ -7,6 +7,7 @@
#include <hex/api/task_manager.hpp>
#include <content/yara_rule.hpp>
#include <wolv/container/interval_tree.hpp>
namespace hex::plugin::yara {
@@ -22,8 +23,7 @@ namespace hex::plugin::yara {
PerProvider<std::vector<YaraRule::Rule>> m_matchedRules;
PerProvider<std::vector<std::string>> m_consoleMessages;
PerProvider<u32> m_selectedRule;
PerProvider<std::vector<u32>> m_tooltipIds, m_highlightingIds;
PerProvider<wolv::container::IntervalTree<std::string>> m_highlights;
TaskHolder m_matcherTask;
@@ -31,4 +31,4 @@ namespace hex::plugin::yara {
void clearResult();
};
}
}