diff options
author | John Hurliman | 2009-10-23 13:14:29 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-23 13:14:29 -0700 |
commit | a41cd1d0695c01e4096fa0b7696b415a4c7455fc (patch) | |
tree | a942c2f79906a7de36e3fe363fba2f8130e9f8c3 /OpenSim/Region/ClientStack | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-a41cd1d0695c01e4096fa0b7696b415a4c7455fc.zip opensim-SC_OLD-a41cd1d0695c01e4096fa0b7696b415a4c7455fc.tar.gz opensim-SC_OLD-a41cd1d0695c01e4096fa0b7696b415a4c7455fc.tar.bz2 opensim-SC_OLD-a41cd1d0695c01e4096fa0b7696b415a4c7455fc.tar.xz |
* 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
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 232c9c9..1dd58bf 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -814,6 +814,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
814 | // on to en-US to avoid number parsing issues | 814 | // on to en-US to avoid number parsing issues |
815 | Culture.SetCurrentCulture(); | 815 | Culture.SetCurrentCulture(); |
816 | 816 | ||
817 | // Typecast the function to an Action<IClientAPI> once here to avoid allocating a new | ||
818 | // Action generic every round | ||
819 | Action<IClientAPI> clientPacketHandler = ClientOutgoingPacketHandler; | ||
820 | |||
817 | while (base.IsRunning) | 821 | while (base.IsRunning) |
818 | { | 822 | { |
819 | try | 823 | try |
@@ -862,7 +866,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
862 | 866 | ||
863 | // Handle outgoing packets, resends, acknowledgements, and pings for each | 867 | // Handle outgoing packets, resends, acknowledgements, and pings for each |
864 | // client. m_packetSent will be set to true if a packet is sent | 868 | // client. m_packetSent will be set to true if a packet is sent |
865 | m_scene.ClientManager.ForEachSync(ClientOutgoingPacketHandler); | 869 | m_scene.ClientManager.ForEachSync(clientPacketHandler); |
866 | 870 | ||
867 | // If nothing was sent, sleep for the minimum amount of time before a | 871 | // If nothing was sent, sleep for the minimum amount of time before a |
868 | // token bucket could get more tokens | 872 | // token bucket could get more tokens |