diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2018-03-23 23:12:29 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2018-03-23 23:12:29 +0300 |
commit | 6cb2fec48ecb9ec50c3b164c75a3552235948e3a (patch) | |
tree | af1a8b4773a35715179ea27d7a983fed1160938e /server/TracyCharUtil.hpp | |
parent | 69b49f527d44e371905bbf96869c88699b081338 (diff) |
Use flat hash map for string map.
Diffstat (limited to 'server/TracyCharUtil.hpp')
-rw-r--r-- | server/TracyCharUtil.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/TracyCharUtil.hpp b/server/TracyCharUtil.hpp index 8e1be47d..8dd777fd 100644 --- a/server/TracyCharUtil.hpp +++ b/server/TracyCharUtil.hpp @@ -5,6 +5,8 @@ #include <stdint.h> #include <string.h> +#include "tracy_flat_hash_map.hpp" + namespace tracy { namespace charutil @@ -46,6 +48,11 @@ struct Hasher } }; +struct HasherPOT : public Hasher +{ + typedef tracy::power_of_two_hash_policy hash_policy; +}; + struct Comparator { bool operator()( const char* lhs, const char* rhs ) const |