Since with nio we can afford to keep 256-512 connections open (and well tuned uber-nodes can go way over 1000), we should rethink whether LRU is still the best strategy for replacing existing connections. Currently the connection that has had least activity is being dropped when a new one is needed.

However, if we're going to keep connections open to every node in the routing table, we should perhaps change that to an LFU strategy. There's no point to award a recently active but rarely used connection at the expense of one that has proven to be used often.

The overall idea is to minimize the number of session restarts which (until session v2 comes out) require heavy crypto.

_______________________________________________
devl mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl

Reply via email to