A slight improvement on name fetching -- using the local name cache, since it exists.

prioritization
Diva Canto 2009-10-09 14:36:08 -07:00
parent c8cc14a98b
commit f29bd8036d
1 changed files with 6 additions and 0 deletions

View File

@ -209,6 +209,12 @@ namespace OpenSim.Framework.Communications
private string[] doUUIDNameRequest(UUID uuid) private string[] doUUIDNameRequest(UUID uuid)
{ {
lock (m_nameRequestCache)
{
if (m_nameRequestCache.ContainsKey(uuid))
return m_nameRequestCache[uuid];
}
string[] returnstring = new string[0]; string[] returnstring = new string[0];
CachedUserInfo uinfo = UserProfileCacheService.GetUserDetails(uuid); CachedUserInfo uinfo = UserProfileCacheService.GetUserDetails(uuid);