From 0e687a83b5bd3fd0b33f7e9a5f5955391ec2d5e5 Mon Sep 17 00:00:00 2001 From: Rye Date: Sat, 10 Jan 2026 01:24:56 -0500 Subject: Optimize various usages of std::map with frequent find access with std::unordered_map Introduce ll::string_hash heterogeneous string hasher --- indra/llui/llcallbackmap.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra/llui/llcallbackmap.h') diff --git a/indra/llui/llcallbackmap.h b/indra/llui/llcallbackmap.h index 3115606d91..69b80db1e8 100644 --- a/indra/llui/llcallbackmap.h +++ b/indra/llui/llcallbackmap.h @@ -27,9 +27,11 @@ #ifndef LLCALLBACKMAP_H #define LLCALLBACKMAP_H -#include +#include "llstl.h" + #include #include +#include class LLCallbackMap { @@ -37,7 +39,7 @@ public: // callback definition. typedef std::function callback_t; - typedef std::map map_t; + typedef std::unordered_map map_t; typedef map_t::iterator map_iter_t; typedef map_t::const_iterator map_const_iter_t; -- cgit v1.3