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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user