Update of /cvsroot/freenet/freenet/src/freenet/support In directory sc8-pr-cvs1:/tmp/cvs-serv24104/src/freenet/support
Modified Files: MultiValueTable.java Log Message: Move KillSurplusConnections back out of a thread, but do it smarter. We will now keep a queue of closed connections to try and avoid even needing to search for closed connections to remove from the OCM. Many other speedups to KillSurplusConnections MultiValueTable has a new method - countAll(id) to get a count of connections to a peer (or whatever) Index: MultiValueTable.java =================================================================== RCS file: /cvsroot/freenet/freenet/src/freenet/support/MultiValueTable.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MultiValueTable.java 19 Sep 2003 14:33:15 -0000 1.2 +++ MultiValueTable.java 26 Sep 2003 22:38:35 -0000 1.3 @@ -68,6 +68,10 @@ v.elements()); } + public int countAll(Object key) { + return ((Vector)table.get(key)).size(); + } + public Object getSync(Object key) { return table.get(key); } _______________________________________________ cvs mailing list [EMAIL PROTECTED] http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs