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

@@ -278,7 +278,6 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
m_listenerManager.DeleteListener(itemID);
}
protected static Vector3 CenterOfRegion = new Vector3(128, 128, 20);
public void DeliverMessage(ChatTypeEnum type, int channel, string name, UUID id, string msg)
@@ -387,7 +386,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm
if (channel == DEBUG_CHANNEL)
return;
if(target == UUID.Zero)
if(target.IsZero())
return;
// Is target an avatar?

View File

@@ -231,9 +231,9 @@ namespace OpenSim.Region.CoreModules.Scripting.XMLRPC
}
}
if (newChannel == UUID.Zero)
if (newChannel.IsZero())
{
newChannel = (channelID == UUID.Zero) ? UUID.Random() : channelID;
newChannel = (channelID.IsZero()) ? UUID.Random() : channelID;
RPCChannelInfo rpcChanInfo = new RPCChannelInfo(localID, itemID, newChannel);
lock (XMLRPCListLock)
{
@@ -283,10 +283,10 @@ namespace OpenSim.Region.CoreModules.Scripting.XMLRPC
RPCRequestInfo rpcInfo = null;
if (message_key == UUID.Zero)
if (message_key.IsZero())
{
foreach (RPCRequestInfo oneRpcInfo in m_rpcPendingResponses.Values)
if (oneRpcInfo.GetChannelKey() == channel_key)
if (oneRpcInfo.GetChannelKey().Equals(channel_key))
rpcInfo = oneRpcInfo;
}
else