mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Use Martin Ankerl's robin hood unordered map.
ska::flat_hash_map has bugs and its development is dead.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../common/TracyForceInline.hpp"
|
||||
#include "tracy_flat_hash_map.hpp"
|
||||
#include "tracy_robin_hood.h"
|
||||
#include "TracyVector.hpp"
|
||||
|
||||
namespace tracy
|
||||
@@ -51,7 +51,7 @@ private:
|
||||
uint16_t CompressThreadReal( uint64_t thread );
|
||||
uint16_t CompressThreadNew( uint64_t thread );
|
||||
|
||||
flat_hash_map<uint64_t, uint16_t, nohash<uint64_t>> m_threadMap;
|
||||
unordered_flat_map<uint64_t, uint16_t> m_threadMap;
|
||||
Vector<uint64_t> m_threadExpand;
|
||||
std::pair<uint64_t, uint16_t> m_threadLast;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user