From 668339f9369d3206f5b6003b1e435aa922bbde95 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 7 Jul 2016 16:04:44 +0100 Subject: [PATCH] reduce the initial capacity of InventoryStringBuilder the 16k i added is unreasonable for most cases. The coment about performance on a previus commit refering to mantis 7904 was wrong, this changes will NOT do much in terms of objects inventory download time, only a bit on cpu and memory use" --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 54c27cb086..2841f7fe91 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -1262,7 +1262,7 @@ namespace OpenSim.Region.Framework.Scenes public class InventoryStringBuilder { - private StringBuilder BuildString = new StringBuilder(16384); + private StringBuilder BuildString = new StringBuilder(1024); public InventoryStringBuilder(UUID folderID, UUID parentID) {