From 1e6db41931d6a9c72304097ebe3b0e06b7ed9df8 Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Sun, 5 Oct 2008 19:43:04 +0000 Subject: Small optimization: Don't ask gridserver about regions on the local instance. --- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 397062b..32628f8 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -322,6 +322,13 @@ namespace OpenSim.Region.Communications.OGS1 /// public RegionInfo RequestNeighbourInfo(UUID Region_UUID) { + // don't ask the gridserver about regions on this instance... + foreach (RegionInfo info in m_regionsOnInstance) + { + if (info.RegionID == Region_UUID) return info; + } + + // didn't find it so far, we have to go the long way RegionInfo regionInfo; Hashtable requestData = new Hashtable(); requestData["region_UUID"] = Region_UUID.ToString(); -- cgit v1.1