== UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-08 23:35:56 +00:00
parent cb98fb309c
commit 357f20eb14
73 changed files with 251 additions and 260 deletions

View File

@@ -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

View File

@@ -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";

View File

@@ -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);