mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
report_manager: use unordered externalIdMap
This commit is contained in:
parent
1287b70f4b
commit
1878b9a857
@ -174,8 +174,9 @@ u32 ReportManager::getDkey(const Report &r) const {
|
|||||||
|
|
||||||
void ReportManager::registerExtReport(ReportID id,
|
void ReportManager::registerExtReport(ReportID id,
|
||||||
const external_report_info &ext) {
|
const external_report_info &ext) {
|
||||||
if (contains(externalIdMap, id)) {
|
auto it = externalIdMap.find(id);
|
||||||
const external_report_info &eri = externalIdMap.at(id);
|
if (it != externalIdMap.end()) {
|
||||||
|
const external_report_info &eri = it->second;
|
||||||
if (eri.highlander != ext.highlander) {
|
if (eri.highlander != ext.highlander) {
|
||||||
/* we have a problem */
|
/* we have a problem */
|
||||||
ostringstream out;
|
ostringstream out;
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
#include "util/compile_error.h"
|
#include "util/compile_error.h"
|
||||||
#include "util/noncopyable.h"
|
#include "util/noncopyable.h"
|
||||||
#include "util/report.h"
|
#include "util/report.h"
|
||||||
|
#include "util/ue2_containers.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
@ -140,7 +141,7 @@ private:
|
|||||||
|
|
||||||
/** \brief Mapping from external match ids to information about that
|
/** \brief Mapping from external match ids to information about that
|
||||||
* id. */
|
* id. */
|
||||||
std::map<ReportID, external_report_info> externalIdMap;
|
unordered_map<ReportID, external_report_info> externalIdMap;
|
||||||
|
|
||||||
/** \brief Mapping from expression index to exhaustion key. */
|
/** \brief Mapping from expression index to exhaustion key. */
|
||||||
std::map<s64a, u32> toExhaustibleKeyMap;
|
std::map<s64a, u32> toExhaustibleKeyMap;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user