[bittorrent] Introductory/endgame algorithms
Olaf van der Spek
olafvdspek at gmail.com
Thu Sep 29 02:58:01 EDT 2005
On 9/29/05, Elliott Mitchell <ehem at m5p.com> wrote:
> Bad idea to do it that way. I doubt most OSes do read-ahead on mmap()ed
> files, and for what BitTorrent is doing readahead is quite important.
> Your best bet is use pread()/readv() on whole pieces when the first block
> is requested, and ensure your buffer is page-aligned
Doesn't that also require the read offset to be aligned?
More information about the BitTorrent