mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -2176,7 +2176,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
break;
|
||||
|
||||
groupID = tmp.AsUUID();
|
||||
if(groupID == UUID.Zero)
|
||||
if(groupID.IsZero())
|
||||
break;
|
||||
|
||||
List<GroupRolesData> roles = m_GroupsModule.GroupRoleDataRequest(client, groupID);
|
||||
@@ -2309,7 +2309,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
fullname = "(hippos)";
|
||||
}
|
||||
|
||||
if(kvp.Key == UUID.Zero)
|
||||
if(kvp.Key.IsZero())
|
||||
continue;
|
||||
|
||||
// dont tell about unknown users, we can't send them back on Bad either
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (itemID == UUID.Zero)
|
||||
if (itemID.IsZero())
|
||||
{
|
||||
LLSDAssetUploadError error = new LLSDAssetUploadError();
|
||||
error.message = "failed to recode request";
|
||||
@@ -166,7 +166,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (itemID == UUID.Zero || objectID == UUID.Zero)
|
||||
if (itemID.IsZero() || objectID.IsZero())
|
||||
{
|
||||
LLSDAssetUploadError error = new LLSDAssetUploadError();
|
||||
error.message = "failed to recode request";
|
||||
@@ -312,7 +312,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
UUID assetID = OnUpLoad(m_inventoryItemID, m_objectID, data);
|
||||
|
||||
if (assetID == UUID.Zero)
|
||||
if (assetID.IsZero())
|
||||
{
|
||||
LLSDAssetUploadError uperror = new LLSDAssetUploadError();
|
||||
uperror.message = "Failed to update inventory item asset";
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
for (int i = 0; i < allowed.Length; ++i)
|
||||
{
|
||||
UUID id = allowed[i];
|
||||
if (id == UUID.Zero)
|
||||
if (id.IsZero())
|
||||
continue;
|
||||
LLSDxmlEncode2.AddMap(sb);
|
||||
LLSDxmlEncode2.AddElem("id", id, sb);
|
||||
@@ -190,7 +190,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
for (int i = 0; i < groups.Length; ++i)
|
||||
{
|
||||
UUID id = groups[i];
|
||||
if (id == UUID.Zero)
|
||||
if (id.IsZero())
|
||||
continue;
|
||||
LLSDxmlEncode2.AddMap(sb);
|
||||
LLSDxmlEncode2.AddElem("id", id, sb);
|
||||
@@ -208,7 +208,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
{
|
||||
EstateBan ban = EstateBans[i];
|
||||
UUID id = ban.BannedUserID;
|
||||
if (id == UUID.Zero)
|
||||
if (id.IsZero())
|
||||
continue;
|
||||
LLSDxmlEncode2.AddMap(sb);
|
||||
LLSDxmlEncode2.AddElem("id", id, sb);
|
||||
|
||||
Reference in New Issue
Block a user