mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
!= UUID.Zero is slow
This commit is contained in:
@@ -538,7 +538,7 @@ namespace OpenSim.Region.CoreModules.Scripting.DynamicTexture
|
||||
|
||||
UUID oldID = UpdatePart(part, asset.FullID);
|
||||
|
||||
if (oldID != UUID.Zero && ((Disp & DISP_EXPIRE) != 0))
|
||||
if (!oldID.IsZero() && ((Disp & DISP_EXPIRE) != 0))
|
||||
{
|
||||
if (oldAsset == null)
|
||||
oldAsset = scene.AssetService.Get(oldID.ToString());
|
||||
|
||||
@@ -754,7 +754,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
|
||||
return collection;
|
||||
}
|
||||
|
||||
bool itemIDNotZero = itemID != UUID.Zero;
|
||||
bool itemIDNotZero = !itemID.IsZero();
|
||||
foreach (ListenerInfo li in listeners)
|
||||
{
|
||||
if (!li.IsActive())
|
||||
@@ -763,7 +763,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
|
||||
if (itemIDNotZero && itemID != li.GetItemID())
|
||||
continue;
|
||||
|
||||
if (li.GetID() != UUID.Zero && id != li.GetID())
|
||||
if (!li.GetID().IsZero() && id.NotEqual(li.GetID()))
|
||||
continue;
|
||||
|
||||
if (li.GetName().Length > 0)
|
||||
|
||||
Reference in New Issue
Block a user