* Cache packed throttle data to avoid repeated allocations in CheckForSignificantMovement()

* Removed a lock on "return m_neighbours.Count" in GetInaccurateNeighborCount(). Dictionary<>.Count by itself does not benefit from locking
This commit is contained in:
John Hurliman
2010-03-05 17:04:20 -08:00
parent cde3c20ba3
commit 36afd0bfd1
2 changed files with 24 additions and 14 deletions

View File

@@ -1132,10 +1132,7 @@ namespace OpenSim.Region.Framework.Scenes
public int GetInaccurateNeighborCount()
{
lock (m_neighbours)
{
return m_neighbours.Count;
}
return m_neighbours.Count;
}
// This is the method that shuts down the scene.