Author: j16sdiz
Date: 2009-04-18 13:58:48 +0000 (Sat, 18 Apr 2009)
New Revision: 26965

Modified:
   trunk/freenet/src/freenet/io/comm/Message.java
Log:
Relex loadFactor, trade memory for CPU

We are nolonger running short of memory,
this change reduce copying and rehashing.

Modified: trunk/freenet/src/freenet/io/comm/Message.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/Message.java      2009-04-18 13:54:03 UTC 
(rev 26964)
+++ trunk/freenet/src/freenet/io/comm/Message.java      2009-04-18 13:58:48 UTC 
(rev 26965)
@@ -60,7 +60,7 @@
        private final MessageType _spec;
        private final WeakReference<? extends PeerContext> _sourceRef;
        private final boolean _internal;
-       private final HashMap<String, Object> _payload = new HashMap<String, 
Object>(8, 1.0F); // REDFLAG at the moment memory is more of an issue than CPU 
so we use a high load factor
+       private final HashMap<String, Object> _payload = new HashMap<String, 
Object>(8);
        private List<Message> _subMessages;
        public final long localInstantiationTime;
        final int _receivedByteCount;

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to