From 05bc2f4fd945e262406ebf1ee08cfe9c49825edd Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 6 Oct 2020 03:38:30 -0400
Subject: [PATCH] Change LLTrans storage to absl::node_hash_map for faster
 lookup

---
 indra/llui/lltrans.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/indra/llui/lltrans.h b/indra/llui/lltrans.h
index 10bafdfbc11..329189a3585 100644
--- a/indra/llui/lltrans.h
+++ b/indra/llui/lltrans.h
@@ -27,12 +27,11 @@
 #ifndef LL_TRANS_H
 #define LL_TRANS_H
 
-#include <map>
-#include <set>
-
 #include "llpointer.h"
 #include "llstring.h"
 
+#include <absl/container/node_hash_map.h>
+
 class LLXMLNode;
 
 class LLSD;
@@ -127,7 +126,7 @@ class LLTrans
 	}
 	
 private:
-	typedef std::map<std::string, LLTransTemplate, std::less<>> template_map_t;
+	typedef absl::node_hash_map<std::string, LLTransTemplate> template_map_t;
 	static template_map_t sStringTemplates;
 	static template_map_t sDefaultStringTemplates;
 	static LLStringUtil::format_map_t sDefaultArgs;
-- 
GitLab