cratetorrent
cratetorrent copied to clipboard
Improve piece turnaround
Currently we wait for disk IO to run to completion. We could hash piece, notify torrent of piece completion, and then attempt a write. This would mean that a failed write would cause an invalid advertisement. Should be a pathological edge case? Once #23 is implemented this shouldn't be a problem in any case.
From libtorrent:
Fundamentally, performance in a bittorrent swarm is achieved by all peers also uploading content. The quicker you can turn around from having downloaded a piece until you can upload it, the better performance and the lower latency before you can take advantage of your upload capacity.