mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user