On Nov 30, 2007, at 1:35 PM, Robert Hailey wrote:
> [...] I see the major problem at hand is that the time in-handling
> of packets must be minimized[...]
To illustrate my point the following patch shows an approximate 100%
speedup for freenet, by my crude profiling.
Index: freenet/node/RequestHandler.java
===================================================================
--- freenet/node/RequestHandler.java (revision 16160)
+++ freenet/node/RequestHandler.java (working copy)
@@ -121,7 +121,7 @@
htl = source.decrementHTL(htl);
Message accepted = DMT.createFNPAccepted(uid);
- source.sendSync(accepted, null);
+ source.sendAsync(accepted, null, 0, null);
Object o = node.makeRequestSender(key, htl, uid, source,
closestLoc, resetClosestLoc, false, true, false);
if(o instanceof KeyBlock) {
A much-more aggressive patch (which makes all RequestHandler sends
Async except the 'last') shows could be 12x; but am concerned over the
byte-counter side effects with which I am not familiar.
--
Robert Hailey