Don't convert UUID -> ToString for every friend (Minor optimisation based on profiler feedback)
parent
40e05f4109
commit
98bd3e1f34
|
@ -201,9 +201,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
|||
|
||||
UserFriendData data = m_Friends[principalID];
|
||||
|
||||
string searchFor = friendID.ToString();
|
||||
foreach (FriendInfo fi in data.Friends)
|
||||
{
|
||||
if (fi.Friend == friendID.ToString())
|
||||
if (fi.Friend == searchFor)
|
||||
return (uint)fi.TheirFlags;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue