Author: nextgens
Date: 2006-12-05 15:21:31 +0000 (Tue, 05 Dec 2006)
New Revision: 11233
Modified:
trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java
Log:
Use a LinkedHashMap on IOStatisticCollector as we spend most of our time
iterating it
Modified: trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java 2006-12-05
14:57:13 UTC (rev 11232)
+++ trunk/freenet/src/freenet/io/comm/IOStatisticCollector.java 2006-12-05
15:21:31 UTC (rev 11233)
@@ -4,7 +4,7 @@
package freenet.io.comm;
import java.util.Date;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.Iterator;
import freenet.support.Logger;
@@ -18,12 +18,12 @@
private static IOStatisticCollector _currentSC;
private long totalbytesin;
private long totalbytesout;
- private final HashMap targets;
+ private final LinkedHashMap targets;
private IOStatisticCollector() {
// Only I should be able to create myself
_currentSC = this;
- targets = new HashMap();
+ targets = new LinkedHashMap();
// TODO: only for testing!!!!
// This should only happen once
//SNMPAgent.create();