diff options
| author | Ansariel Hiller <Ansariel@users.noreply.github.com> | 2025-04-25 19:52:38 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-25 20:52:38 +0300 | 
| commit | 10a324a1034c177b95545ac7ffaa6aa6abed65ff (patch) | |
| tree | bfa78ec1ac88c92199339ed8b24ee3b5f50ecb4b /indra/llappearance | |
| parent | 3e5f4fd0c4cb31d94c9255b46d3ff9e2f06d327b (diff) | |
Reduce cost of joint lookups by reducing string allocations via use of std::string_view and heterogeneous map lookups (#3970)
Diffstat (limited to 'indra/llappearance')
| -rw-r--r-- | indra/llappearance/llavatarappearance.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/llappearance/llavatarappearance.h b/indra/llappearance/llavatarappearance.h index 13e504e639..99bc5eeef5 100644 --- a/indra/llappearance/llavatarappearance.h +++ b/indra/llappearance/llavatarappearance.h @@ -138,7 +138,7 @@ public:      LLVector3           mHeadOffset{}; // current head position      LLAvatarJoint*      mRoot{ nullptr }; -    typedef std::map<std::string, LLJoint*> joint_map_t; +    typedef std::map<std::string, LLJoint*, std::less<>> joint_map_t;      joint_map_t         mJointMap;      typedef std::map<std::string, LLVector3> joint_state_map_t; @@ -151,7 +151,7 @@ public:  public:      typedef std::vector<LLAvatarJoint*> avatar_joint_list_t;      const avatar_joint_list_t& getSkeleton() { return mSkeleton; } -    typedef std::map<std::string, std::string> joint_alias_map_t; +    typedef std::map<std::string, std::string, std::less<>> joint_alias_map_t;      const joint_alias_map_t& getJointAliases(); | 
