!= UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-09 02:28:51 +00:00
parent 7e0fc95c3a
commit da928d6099
78 changed files with 254 additions and 263 deletions

View File

@@ -156,7 +156,7 @@ namespace OpenSim.Services.UserAccountService
UserAccountData[] d;
if (scopeID != UUID.Zero)
if (!scopeID.IsZero())
{
d = m_Database.Get(
new string[] { "ScopeID", "FirstName", "LastName" },
@@ -234,7 +234,7 @@ namespace OpenSim.Services.UserAccountService
{
UserAccountData[] d;
if (scopeID != UUID.Zero)
if (!scopeID.IsZero())
{
d = m_Database.Get(
new string[] { "ScopeID", "Email" },
@@ -263,7 +263,7 @@ namespace OpenSim.Services.UserAccountService
{
UserAccountData[] d;
if (scopeID != UUID.Zero)
if (!scopeID.IsZero())
{
d = m_Database.Get(
new string[] { "ScopeID", "PrincipalID" },
@@ -903,7 +903,7 @@ namespace OpenSim.Services.UserAccountService
for(int j = 0; j < basewearable.Count; j++)
{
wearable = basewearable[j];
if (wearable.ItemID != UUID.Zero)
if (!wearable.ItemID.IsZero())
{
m_log.DebugFormat("[XXX]: Getting item {0} from avie {1} for {2} {3}",
wearable.ItemID, source, i, j);
@@ -970,7 +970,7 @@ namespace OpenSim.Services.UserAccountService
int attachpoint = attachment.AttachPoint;
UUID itemID = attachment.ItemID;
if (itemID != UUID.Zero)
if (!itemID.IsZero())
{
// Get inventory item and copy it
InventoryItemBase item = m_InventoryService.GetItem(source, itemID);