Author: toad
Date: 2007-07-21 19:33:09 +0000 (Sat, 21 Jul 2007)
New Revision: 14248
Modified:
trunk/freenet/src/freenet/keys/ClientCHK.java
Log:
comments
Modified: trunk/freenet/src/freenet/keys/ClientCHK.java
===================================================================
--- trunk/freenet/src/freenet/keys/ClientCHK.java 2007-07-21 19:29:52 UTC
(rev 14247)
+++ trunk/freenet/src/freenet/keys/ClientCHK.java 2007-07-21 19:33:09 UTC
(rev 14248)
@@ -136,6 +136,9 @@
}
public NodeCHK getNodeCHK() {
+ // This costs us more or less nothing: we have to keep the
routingKey anyway.
+ // Therefore, keeping a NodeCHK as well is a net saving, since
it's frequently
+ // asked for. (A SoftReference would cost more).
if(nodeKey == null)
nodeKey = new NodeCHK(routingKey, cryptoAlgorithm);
return nodeKey;