Packet recycling has been temporarily disabled to avoid the performance problems reported in Mantis 281
parent
f34ccdd222
commit
3f78e55ef4
|
@ -49,6 +49,8 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public Packet GetPacket(PacketType type)
|
public Packet GetPacket(PacketType type)
|
||||||
{
|
{
|
||||||
|
return Packet.BuildPacket(type);
|
||||||
|
/* Skip until PacketPool performance problems have been resolved (mantis 281)
|
||||||
Packet packet = null;
|
Packet packet = null;
|
||||||
|
|
||||||
lock (pool)
|
lock (pool)
|
||||||
|
@ -66,6 +68,7 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
|
|
||||||
return packet;
|
return packet;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copied from LibSL, and added a check to avoid overwriting the
|
// Copied from LibSL, and added a check to avoid overwriting the
|
||||||
|
@ -137,6 +140,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
public void ReturnPacket(Packet packet)
|
public void ReturnPacket(Packet packet)
|
||||||
{
|
{
|
||||||
|
/* Skip until PacketPool performance problems have been resolved (mantis 281)
|
||||||
lock (pool)
|
lock (pool)
|
||||||
{
|
{
|
||||||
PacketType type = packet.Type;
|
PacketType type = packet.Type;
|
||||||
|
@ -148,6 +152,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
((Stack) pool[type]).Push(packet);
|
((Stack) pool[type]).Push(packet);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue