Open xis19 opened 1 month ago
Trace.cpp:SuppressionMap would (1) create a copy of the TraceEvent type string (2) Store the string inside the std::map data structure.
Trace.cpp:SuppressionMap
TraceEvent
type
std::map
Considering the frequency of using TraceEvent it might be interesting to see:
SuppressionMap
TraceEvent::type
std::unordered_map
Trace.cpp:SuppressionMap
would (1) create a copy of theTraceEvent
type
string (2) Store the string inside thestd::map
data structure.Considering the frequency of using
TraceEvent
it might be interesting to see:SuppressionMap
will only create a copy of theTraceEvent::type
when it is unknown.std::unordered_map
or some other custom implementation?