Replace std::map<std::string, LLJoint*> with boost::unordered_map<std::string, LLJoint*> as this one is queried very often.

meow-7.2.2
Nicky 2013-08-14 13:09:24 +02:00
parent 387e9d9745
commit 3de08c3f6f
1 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,11 @@ public:
LLVector3 mHeadOffset; // current head position
LLAvatarJoint *mRoot;
typedef std::map<std::string, LLJoint*> joint_map_t;
// <FS:ND> This map gets queried a huge amount of time.
// typedef std::map<std::string, LLJoint*> joint_map_t;
typedef boost::unordered_map<std::string, LLJoint*> joint_map_t;
// </FS:ND>
joint_map_t mJointMap;
void computeBodySize();