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

Use 32 bits to store lock id.

This makes queue item size 32 bytes. Queue operations can now be faster,
because multiplication by 33 is replaced by shift by 5.
This commit is contained in:
Bartosz Taudul
2017-10-13 20:05:38 +02:00
parent ec789d60e8
commit 1aaab3c5e4
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ private:
std::unordered_map<uint64_t, std::string> m_threadNames;
std::unordered_set<const char*, charutil::Hasher, charutil::Comparator> m_customStrings;
std::unordered_map<uint64_t, QueueSourceLocation> m_sourceLocation;
std::unordered_map<uint64_t, LockMap> m_lockMap;
std::unordered_map<uint32_t, LockMap> m_lockMap;
uint64_t m_zonesCnt;
std::mutex m_mbpslock;