mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-10 08:12:21 +03:00
rose: replace RoseLiteralMap use of bimap
This apoproach is simpler and more efficient for cases with large numbers of literals.
This commit is contained in:
committed by
Matthew Barr
parent
a75b2ba2e5
commit
8b9328fe9e
@@ -311,9 +311,9 @@ bool RoseDedupeAuxImpl::requiresDedupeSupport(
|
||||
}
|
||||
|
||||
for (auto it = begin(lits); it != end(lits); ++it) {
|
||||
const auto &lit1 = build.literals.right.at(it->first);
|
||||
const auto &lit1 = build.literals.at(it->first);
|
||||
for (auto jt = next(it); jt != end(lits); ++jt) {
|
||||
const auto &lit2 = build.literals.right.at(jt->first);
|
||||
const auto &lit2 = build.literals.at(jt->first);
|
||||
if (literalsCouldRace(lit1, lit2)) {
|
||||
DEBUG_PRINTF("literals could race\n");
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user