From 2c8fcf3798f2a89b9fcaf670d0819791cbca706c Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Tue, 13 Oct 2020 09:51:34 -0400
Subject: [PATCH] Swap EEP over to absl containers for a bit faster speed

---
 indra/llinventory/llsettingsbase.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/indra/llinventory/llsettingsbase.h b/indra/llinventory/llsettingsbase.h
index ce30538c261..01678265556 100644
--- a/indra/llinventory/llsettingsbase.h
+++ b/indra/llinventory/llsettingsbase.h
@@ -33,6 +33,9 @@
 #include <vector>
 #include <boost/signals2.hpp>
 
+#include "absl/container/flat_hash_set.h"
+#include "absl/container/flat_hash_map.h"
+
 #include "llsd.h"
 #include "llsdutil.h"
 #include "v2math.h"
@@ -92,7 +95,7 @@ class LLSettingsBase :
     };
     // Contains settings' names (map key), related shader id-key and default
     // value for revert in case we need to reset shader (no need to search each time)
-    typedef std::map<std::string, DefaultParam>  parammapping_t;
+    typedef absl::flat_hash_map<std::string, DefaultParam>  parammapping_t;
 
     typedef PTR_NAMESPACE::shared_ptr<LLSettingsBase> ptr_t;
 
@@ -326,7 +329,7 @@ class LLSettingsBase :
     LLSettingsBase();
     LLSettingsBase(const LLSD setting);
 
-    typedef std::set<std::string>   stringset_t;
+    typedef absl::flat_hash_set<std::string>   stringset_t;
     
     // combining settings objects. Customize for specific setting types
     virtual void lerpSettings(const LLSettingsBase &other, BlendFactor mix);
-- 
GitLab