mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -95,11 +95,11 @@ namespace OpenSim.Groups
|
||||
|
||||
public ExtendedGroupRecord GetGroupRecord(string RequestingAgentID, UUID GroupID, string GroupName, string token)
|
||||
{
|
||||
if (GroupID == UUID.Zero && (GroupName == null || (GroupName != null && GroupName == string.Empty)))
|
||||
if (GroupID.IsZero() && (GroupName == null || (GroupName != null && GroupName == string.Empty)))
|
||||
return null;
|
||||
|
||||
Dictionary<string, object> sendData = new Dictionary<string, object>();
|
||||
if (GroupID != UUID.Zero)
|
||||
if (!GroupID.IsZero())
|
||||
sendData["GroupID"] = GroupID.ToString();
|
||||
if (!string.IsNullOrEmpty(GroupName))
|
||||
sendData["Name"] = GroupsDataUtils.Sanitize(GroupName);
|
||||
|
||||
@@ -605,7 +605,7 @@ namespace OpenSim.Groups
|
||||
private string AgentUUI(string AgentIDStr)
|
||||
{
|
||||
UUID AgentID = UUID.Zero;
|
||||
if (!UUID.TryParse(AgentIDStr, out AgentID) || AgentID == UUID.Zero)
|
||||
if (!UUID.TryParse(AgentIDStr, out AgentID) || AgentID.IsZero())
|
||||
return UUID.Zero.ToString();
|
||||
|
||||
if (m_UserManagement.IsLocalGridUser(AgentID))
|
||||
@@ -630,8 +630,8 @@ namespace OpenSim.Groups
|
||||
private string AgentUUIForOutside(string AgentIDStr)
|
||||
{
|
||||
UUID AgentID = UUID.Zero;
|
||||
if (!UUID.TryParse(AgentIDStr, out AgentID) || AgentID == UUID.Zero)
|
||||
return UUID.Zero.ToString();
|
||||
if (!UUID.TryParse(AgentIDStr, out AgentID) || AgentID.IsZero())
|
||||
return UUID.ZeroString;
|
||||
|
||||
AgentCircuitData agent = null;
|
||||
foreach (Scene scene in m_Scenes)
|
||||
|
||||
Reference in New Issue
Block a user