foundationdb
foundationdb copied to clipboard
Benchmark `Trace.cpp:SuppressionMap`
Trace.cpp:SuppressionMap
would (1) create a copy of the TraceEvent
type
string (2) Store the string inside the std::map
data structure.
Considering the frequency of using TraceEvent
it might be interesting to see:
- It is possible that
SuppressionMap
will only create a copy of theTraceEvent::type
when it is unknown. - Try
std::unordered_map
or some other custom implementation?