diff options
author | Justin Clark-Casey (justincc) | 2012-10-11 23:58:37 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-11 23:58:37 +0100 |
commit | 2e9ef015f7b73a3942011a36a9f94ce59d848dc0 (patch) | |
tree | 7045611afacf2b4be3e5543c142a1fd9c047de2f /OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-2e9ef015f7b73a3942011a36a9f94ce59d848dc0.zip opensim-SC_OLD-2e9ef015f7b73a3942011a36a9f94ce59d848dc0.tar.gz opensim-SC_OLD-2e9ef015f7b73a3942011a36a9f94ce59d848dc0.tar.bz2 opensim-SC_OLD-2e9ef015f7b73a3942011a36a9f94ce59d848dc0.tar.xz |
Fix packetpool for ImprovedTerseObjectUpdate packets.
These were neither being returned or in many places reused.
Getting packets from a pool rather than deallocating and reallocating reduces memory churn which in turn reduces garbage collection time and frequency.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs index 3d9f94f..fd6b0ed 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/PacketPool.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
47 | private PercentageStat m_packetsReusedStat = new PercentageStat( | 47 | private PercentageStat m_packetsReusedStat = new PercentageStat( |
48 | "PacketsReused", | 48 | "PacketsReused", |
49 | "Packets reused", | 49 | "Packets reused", |
50 | "simulator", | 50 | "clientstack", |
51 | "simulator", | 51 | "simulator", |
52 | StatVerbosity.Debug, | 52 | StatVerbosity.Debug, |
53 | "Number of packets reused out of all requests to the packet pool"); | 53 | "Number of packets reused out of all requests to the packet pool"); |
@@ -55,7 +55,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
55 | private PercentageStat m_blocksReusedStat = new PercentageStat( | 55 | private PercentageStat m_blocksReusedStat = new PercentageStat( |
56 | "BlocksReused", | 56 | "BlocksReused", |
57 | "Blocks reused", | 57 | "Blocks reused", |
58 | "simulator", | 58 | "clientstack", |
59 | "simulator", | 59 | "simulator", |
60 | StatVerbosity.Debug, | 60 | StatVerbosity.Debug, |
61 | "Number of data blocks reused out of all requests to the packet pool"); | 61 | "Number of data blocks reused out of all requests to the packet pool"); |