!= 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

@@ -201,7 +201,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
if (folder == null || folder.Owner != remoteClient.AgentId)
return;
if (transactionID != UUID.Zero && assetType != (byte)AssetType.Settings)
if (!transactionID.IsZero() && assetType != (byte)AssetType.Settings)
{
IAgentAssetTransactions agentTransactions = m_Scene.AgentTransactionsModule;
if (agentTransactions != null)

View File

@@ -163,7 +163,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
m_userAccountService = s.UserAccountService;
if(m_gridUserService == null)
m_gridUserService = s.GridUserService;
if (s.RegionInfo.ScopeID != UUID.Zero)
if (!s.RegionInfo.ScopeID.IsZero())
m_scopeID = s.RegionInfo.ScopeID;
}