* Removed a lock in a high performance section of OpenSim, in cases when it is not necessary.
parent
d7aedf343a
commit
765fc6c289
|
@ -53,6 +53,9 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
Packet packet;
|
Packet packet;
|
||||||
|
|
||||||
|
if (!packetPoolEnabled)
|
||||||
|
return Packet.BuildPacket(type);
|
||||||
|
|
||||||
lock (pool)
|
lock (pool)
|
||||||
{
|
{
|
||||||
if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0)
|
if (!pool.ContainsKey(type) || pool[type] == null || (pool[type]).Count == 0)
|
||||||
|
|
Loading…
Reference in New Issue