== UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-09 00:33:16 +00:00
parent 357f20eb14
commit 7e0fc95c3a
26 changed files with 137 additions and 143 deletions

View File

@@ -240,7 +240,7 @@ namespace OpenSim.Server.Handlers.Simulation
{
case "QUERYACCESS":
{
if (agentID == UUID.Zero || regionID == UUID.Zero)
if (agentID.IsZero() || regionID.IsZero())
{
httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
httpResponse.RawBuffer = Utils.falseStrBytes;
@@ -271,7 +271,7 @@ namespace OpenSim.Server.Handlers.Simulation
}
case "POST":
{
if (agentID == UUID.Zero)
if (agentID.IsZero())
{
httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
httpResponse.RawBuffer = Utils.falseStrBytes;
@@ -289,7 +289,7 @@ namespace OpenSim.Server.Handlers.Simulation
}
case "DELETE":
{
if (agentID == UUID.Zero || regionID == UUID.Zero)
if (agentID.IsZero() || regionID.IsZero())
{
httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
httpResponse.RawBuffer = Utils.falseStrBytes;