mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
Major change in the way inventory is downloaded: added a method throughout IIventoryService that fetches sets of folders at once. Also added folder id in the InventoryCollection data structure, so that we don't need to go to inventory server again just for that. This reduces the chatter between sims and inventory server by... a lot. On my tests, this reduces initial inventory download down to 30% of what it currently is.
This commit is contained in:
@@ -201,7 +201,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
Scene.EventManager.OnRegisterCaps += RegisterCaps;
|
||||
|
||||
int nworkers = 1; // was 2
|
||||
int nworkers = 2; // was 2
|
||||
if (ProcessQueuedRequestsAsync && m_workerThreads == null)
|
||||
{
|
||||
m_workerThreads = new Thread[nworkers];
|
||||
@@ -365,7 +365,11 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
requestinfo.request["body"].ToString(), String.Empty, String.Empty, null, null);
|
||||
|
||||
lock (responses)
|
||||
{
|
||||
if (responses.ContainsKey(requestID))
|
||||
m_log.WarnFormat("[FETCH INVENTORY DESCENDENTS2 MODULE]: Caught in the act of loosing responses! Please report this on mantis #7054");
|
||||
responses[requestID] = response;
|
||||
}
|
||||
|
||||
WebFetchInvDescModule.ProcessedRequestsCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user