combinatorrent
combinatorrent copied to clipboard
Optimize Piece Manager requests
When we grab pieces from the Piece Manager, let it provide us with a pruned set of pieces we can ask with later. This way, we only need to consider pieces we already have once and we get a faster system. When doing this, only prune pieces which are done and checked.
Currently, this is not in the hot code path, so it is not that important to pull off yet.