* Unregister Mono.Addins event handlers in PluginLoader.Dispose() and always handle PluginLoader with the using pattern. This freed up 121,634,796 bytes on my system

* Avoid allocating an Action<IClientAPI> object every round of the OutgoingPacketHandler
* Removed unnecessary semi-colon endings from OpenSim.ini.example [InterestManagement] section
This commit is contained in:
John Hurliman
2009-10-23 13:14:29 -07:00
parent c749cf0061
commit a41cd1d069
7 changed files with 44 additions and 29 deletions

View File

@@ -115,11 +115,11 @@ namespace OpenSim.Grid.GridServer
protected virtual void LoadPlugins()
{
PluginLoader<IGridPlugin> loader =
new PluginLoader<IGridPlugin>(new GridPluginInitialiser(this));
loader.Load("/OpenSim/GridServer");
m_plugins = loader.Plugins;
using (PluginLoader<IGridPlugin> loader = new PluginLoader<IGridPlugin>(new GridPluginInitialiser(this)))
{
loader.Load("/OpenSim/GridServer");
m_plugins = loader.Plugins;
}
}
public override void ShutdownSpecific()