Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv31272/src/freenet/node/rt
Modified Files:
NGRoutingTable.java
Log Message:
hopefully significant optimization to NGRT.references(id). The old way (which is what
CPAlgoRT still uses) was *really* heavy. Also make the insert box only show up in
advanced mode.
Index: NGRoutingTable.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/NGRoutingTable.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- NGRoutingTable.java 11 Sep 2003 15:32:42 -0000 1.4
+++ NGRoutingTable.java 20 Sep 2003 22:26:14 -0000 1.5
@@ -143,6 +143,10 @@
routingStore.remove(id == null ? mem.getIdentity() : id);
}
+ public boolean references(Identity id) {
+ return estimators.get(id) != null;
+ }
+
public synchronized Routing route(Key k, int htl, long size,
boolean
force,
boolean
isInsert) {
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs