1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Replace linear search with hash lookup.

This commit is contained in:
Bartosz Taudul
2019-04-03 16:24:16 +02:00
parent 82dad3fb97
commit a7886cf82c
3 changed files with 107 additions and 56 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ struct CallstackFrameTree
CallstackFrameId frame;
uint64_t alloc;
uint32_t count;
std::vector<CallstackFrameTree> children;
flat_hash_map<uint64_t, CallstackFrameTree, nohash<uint64_t>> children;
flat_hash_set<uint32_t, nohash<uint32_t>> callstacks;
};