Skip to content

Commit 774775d

Browse files
s-kanevnolanmar511
authored andcommitted
Internal optimization
PiperOrigin-RevId: 766867671
1 parent c085bc5 commit 774775d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/intervalmap.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ class IntervalMap {
5555
};
5656

5757
using MapIter = typename std::map<uint64_t, Value>::iterator;
58-
using ConstMapIter = typename std::map<uint64_t, Value>::const_iterator;
58+
using ConstMapIter =
59+
typename std::map<uint64_t, Value>::const_iterator;
60+
using MapImpl = std::map<uint64_t, Value>;
5961

6062
// Returns an iterator pointing to the interval containing the given key, or
6163
// end() if one was not found.
@@ -101,7 +103,7 @@ class IntervalMap {
101103

102104
// Map from the start of the interval to the limit of the interval and the
103105
// corresponding value.
104-
std::map<uint64_t, Value> interval_start_;
106+
MapImpl interval_start_;
105107
};
106108

107109
template <class V>

src/quipper/perf_parser.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ class PerfParser {
296296
std::unordered_map<std::string, DSOInfo> name_to_dso_;
297297

298298
// Maps process ID to an address mapper for that process.
299-
std::unordered_map<uint32_t, std::unique_ptr<AddressMapper>> process_mappers_;
299+
std::unordered_map<uint32_t, std::unique_ptr<AddressMapper>>
300+
process_mappers_;
300301
};
301302

302303
} // namespace quipper

0 commit comments

Comments
 (0)