aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJohn Hurliman2010-03-05 17:04:20 -0800
committerJohn Hurliman2010-03-05 17:04:20 -0800
commit36afd0bfd1f80131a9f8dd72cc8b3eb71f060e02 (patch)
treebf1bda703f95b89e3c7d57452262da6269ea2c19 /OpenSim/Region/Framework/Scenes
parent* Fixed an order of operations bug in CheckForSignificantMovement() that was ... (diff)
downloadopensim-SC_OLD-36afd0bfd1f80131a9f8dd72cc8b3eb71f060e02.zip
opensim-SC_OLD-36afd0bfd1f80131a9f8dd72cc8b3eb71f060e02.tar.gz
opensim-SC_OLD-36afd0bfd1f80131a9f8dd72cc8b3eb71f060e02.tar.bz2
opensim-SC_OLD-36afd0bfd1f80131a9f8dd72cc8b3eb71f060e02.tar.xz
* 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
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index a880fe7..8f9663c 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1132,10 +1132,7 @@ namespace OpenSim.Region.Framework.Scenes
1132 1132
1133 public int GetInaccurateNeighborCount() 1133 public int GetInaccurateNeighborCount()
1134 { 1134 {
1135 lock (m_neighbours) 1135 return m_neighbours.Count;
1136 {
1137 return m_neighbours.Count;
1138 }
1139 } 1136 }
1140 1137
1141 // This is the method that shuts down the scene. 1138 // This is the method that shuts down the scene.