2007-01-20 zzz

* i2psnark: More choking rotation tweaks
    * Improve performance by not reading in the whole
      piece from disk for each request. A huge memory savings
      on 1MB torrents with many peers.
This commit is contained in:
zzz
2007-01-21 00:35:09 +00:00
committed by zzz
parent 8ca085bceb
commit 8a87df605b
7 changed files with 47 additions and 20 deletions

View File

@@ -387,7 +387,7 @@ class PeerConnectionOut implements Runnable
m.begin = begin;
m.length = length;
m.data = bytes;
m.off = begin;
m.off = 0;
m.len = length;
addMessage(m);
}