From 10a324a1034c177b95545ac7ffaa6aa6abed65ff Mon Sep 17 00:00:00 2001 From: Ansariel Hiller Date: Fri, 25 Apr 2025 19:52:38 +0200 Subject: Reduce cost of joint lookups by reducing string allocations via use of std::string_view and heterogeneous map lookups (#3970) --- indra/newview/llvoavatarself.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llvoavatarself.h') diff --git a/indra/newview/llvoavatarself.h b/indra/newview/llvoavatarself.h index f9bea41b1d..f7cd974ab0 100644 --- a/indra/newview/llvoavatarself.h +++ b/indra/newview/llvoavatarself.h @@ -90,7 +90,7 @@ public: /*virtual*/ bool hasMotionFromSource(const LLUUID& source_id); /*virtual*/ void stopMotionFromSource(const LLUUID& source_id); /*virtual*/ void requestStopMotion(LLMotion* motion); - /*virtual*/ LLJoint* getJoint(const std::string &name); + /*virtual*/ LLJoint* getJoint(std::string_view name); /*virtual*/ void renderJoints(); -- cgit v1.2.3