From b477e61f4243c83a663a0fab0cf18db9481b3dfb Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Fri, 14 Feb 2020 17:32:44 -0500 Subject: [PATCH] Swap capability map to an unordered_map to reduce find overhead. So. Many. Finds. --- indra/newview/llviewerregion.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 7ddbf14e3a..acbaf47f01 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -79,6 +79,7 @@ #include "llcorehttputil.h" #include "llcallstack.h" +#include "absl/container/node_hash_map.h" #include <boost/lexical_cast.hpp> #include "llweb.h" #include "llcurrencywrapper.h" @@ -100,7 +101,7 @@ BOOL LLViewerRegion::sVOCacheCullingEnabled = FALSE; S32 LLViewerRegion::sLastCameraUpdated = 0; S32 LLViewerRegion::sNewObjectCreationThrottle = -1; -typedef std::map<std::string, std::string> CapabilityMap; +typedef absl::node_hash_map<std::string, std::string> CapabilityMap; static void log_capabilities(const CapabilityMap &capmap); -- GitLab