a1a820d3c9
The calculation of whether we should ignore a piece in GetRequestablePieces ends up doing an allocation for every piece, when all we really need to do is query the index in the torrent. Provide an IgnorePiece function instead, which avoids the need for a temporary allocation. Observed to cut out 40% of object allocations in some workloads (large download, lots of seeds). |
||
---|---|---|
.. | ||
ajwerner-btree.go | ||
order.go | ||
peer.go | ||
piece-request-order.go | ||
piece-request-order_test.go | ||
piece.go | ||
tidwall-btree.go | ||
torrent.go |