foundationdb icon indicating copy to clipboard operation
foundationdb copied to clipboard

Benchmark `Trace.cpp:SuppressionMap`

Open xis19 opened this issue 9 months ago • 0 comments

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:

  1. It is possible that SuppressionMap will only create a copy of the TraceEvent::type when it is unknown.
  2. Try std::unordered_map or some other custom implementation?

xis19 avatar May 22 '24 22:05 xis19