On Saturday 18 April 2009 14:58:48 [email protected] wrote:
> 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.

Well, we can have a lot of waiting messages...
> 
> 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;

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to