diff options
author | Justin Clark-Casey (justincc) | 2014-10-20 23:46:34 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:21:38 +0000 |
commit | 1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8 (patch) | |
tree | f8abd87d29a07bb6baf3c82d2824ff070a316aaa /OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/HGAssetMapperTests.cs | |
parent | Add regression test TestPostAssetRewrite() to check results of HGAssetMapper.... (diff) | |
download | opensim-SC_OLD-1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8.zip opensim-SC_OLD-1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8.tar.gz opensim-SC_OLD-1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8.tar.bz2 opensim-SC_OLD-1eb3e6cc43e2a7b4053bc1185c7c88e22356c5e8.tar.xz |
When inserting missing CreatorData in the HGAssetMapper, do the rewrite on a streaming xml basis rather than loading it all into memory via XmlDocument.
This is because objects with lots of parts can have a lot of xml to load into memory, and this has been seen to have a noticeable performance impact.
Whereas streaming has been seen to reduce the impact in normal serialization.
Implmentation is messy but I couldn't see a better way of doing it when you can't assume that you know the exact structure of the input XML.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/HGAssetMapperTests.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/HGAssetMapperTests.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/HGAssetMapperTests.cs index 3dbddfb..779da43 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/HGAssetMapperTests.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/HGAssetMapperTests.cs | |||
@@ -44,6 +44,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests | |||
44 | public void TestPostAssetRewrite() | 44 | public void TestPostAssetRewrite() |
45 | { | 45 | { |
46 | TestHelpers.InMethod(); | 46 | TestHelpers.InMethod(); |
47 | // TestHelpers.EnableLogging(); | ||
47 | 48 | ||
48 | string homeUrl = "http://hg.HomeTestPostAssetRewriteGrid.com"; | 49 | string homeUrl = "http://hg.HomeTestPostAssetRewriteGrid.com"; |
49 | string foreignUrl = "http://hg.ForeignTestPostAssetRewriteGrid.com"; | 50 | string foreignUrl = "http://hg.ForeignTestPostAssetRewriteGrid.com"; |