Closed Ortham closed 2 years ago
Compiling plugin regexes is responsible for 63% of the time spent calling MetadataList::FindPlugin, and 25% of the time spent constructing PluginItem objects in LOOT:
MetadataList::FindPlugin
PluginItem
With a global cache (static std::map<std::string, std::regex>) hacked in, things look a lot better:
static std::map<std::string, std::regex>
Done in 15781c9b6b37adce5460091dc9ef7cea51c0707b.
Compiling plugin regexes is responsible for 63% of the time spent calling
MetadataList::FindPlugin
, and 25% of the time spent constructingPluginItem
objects in LOOT: