mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
perf.肉鸽选人一处小细节优化
This commit is contained in:
@@ -51,8 +51,9 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
|
||||
Log.info("visible opers count:", analyzer.get_result().size(), "visible opers:", visible_opers);
|
||||
}
|
||||
// demand_filter
|
||||
std::unordered_set<std::string> opers_set(m_opers.cbegin(), m_opers.cend());
|
||||
analyzer.filter([&](const TextRect& x) -> bool {
|
||||
return find(m_opers.begin(), m_opers.end(), x.text) != m_opers.end();
|
||||
return opers_set.find(x.text) != opers_set.cend();
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user