assignDkeys: use flat_set<ReportID>, not set

This commit is contained in:
Justin Viiret
2015-12-02 10:39:32 +11:00
committed by Matthew Barr
parent 8dac64d1dc
commit da23e8306a
5 changed files with 20 additions and 15 deletions

View File

@@ -128,11 +128,9 @@ vector<ReportID> ReportManager::getDkeyToReportTable() const {
}
void ReportManager::assignDkeys(const RoseBuild *rose) {
unique_ptr<RoseDedupeAux> dedupe = rose->generateDedupeAux();
DEBUG_PRINTF("assigning...\n");
map<u32, set<ReportID>> ext_to_int;
map<u32, ue2::flat_set<ReportID>> ext_to_int;
for (u32 i = 0; i < reportIds.size(); i++) {
const Report &ir = reportIds[i];
@@ -143,6 +141,8 @@ void ReportManager::assignDkeys(const RoseBuild *rose) {
}
}
auto dedupe = rose->generateDedupeAux();
for (const auto &m : ext_to_int) {
u32 ext = m.first;