Author: toad
Date: 2007-02-07 15:34:33 +0000 (Wed, 07 Feb 2007)
New Revision: 11685
Modified:
trunk/freenet/src/freenet/io/comm/Message.java
Log:
Memory/cpu tradeoff
Modified: trunk/freenet/src/freenet/io/comm/Message.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/Message.java 2007-02-07 15:27:50 UTC
(rev 11684)
+++ trunk/freenet/src/freenet/io/comm/Message.java 2007-02-07 15:34:33 UTC
(rev 11685)
@@ -37,7 +37,7 @@
private final MessageType _spec;
private final PeerContext _source;
- private final HashMap _payload = new HashMap();
+ private final HashMap _payload = new HashMap(8, 1.0F); // REDFLAG at
the moment memory is more of an issue than CPU so we use a high load factor
public final long localInstantiationTime;
final int _receivedByteCount;