From 880fc746cdf7548a7c62f4e3d1a6584bc392fcfc Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Wed, 14 Oct 2020 14:35:12 -0400
Subject: [PATCH] Speed up motion updates with hashmaps

---
 indra/llcharacter/llmotioncontroller.cpp | 2 +-
 indra/llcharacter/llmotioncontroller.h   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/indra/llcharacter/llmotioncontroller.cpp b/indra/llcharacter/llmotioncontroller.cpp
index 5097d2d6033..a5a64ef0a63 100644
--- a/indra/llcharacter/llmotioncontroller.cpp
+++ b/indra/llcharacter/llmotioncontroller.cpp
@@ -179,7 +179,7 @@ void LLMotionController::deleteAllMotions()
 	// mAllMotions to mDeprecatedMotions in method
 	// LLMotionController::deprecateMotionInstance().  Thus, we should also clean
 	// up the mDeprecatedMotions list as well.
-	for_each(mDeprecatedMotions.begin(), mDeprecatedMotions.end(), DeletePointer());
+	std::for_each(mDeprecatedMotions.begin(), mDeprecatedMotions.end(), DeletePointer());
 	mDeprecatedMotions.clear();
 }
 
diff --git a/indra/llcharacter/llmotioncontroller.h b/indra/llcharacter/llmotioncontroller.h
index 7f4627dad28..b3eb4e147ea 100644
--- a/indra/llcharacter/llmotioncontroller.h
+++ b/indra/llcharacter/llmotioncontroller.h
@@ -87,7 +87,7 @@ class LLMotionController
 {
 public:
 	typedef std::list<LLMotion*> motion_list_t;
-	typedef std::set<LLMotion*> motion_set_t;
+	typedef absl::flat_hash_set<LLMotion*> motion_set_t;
 	BOOL mIsSelf;
 	
 public:
-- 
GitLab