From: Matt Joiner Date: Fri, 10 Sep 2021 12:13:39 +0000 (+1000) Subject: Disable ensureValidSortedPeersForPieceRequests X-Git-Tag: v1.32.0~79 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e9193968a3f67d1e6fc9af777c13b0a1e8a0be0c;p=btrtrc.git Disable ensureValidSortedPeersForPieceRequests Should approximately half the contribution of the parent function to overhead. --- diff --git a/request-strategy/order.go b/request-strategy/order.go index f722e388..41f5902d 100644 --- a/request-strategy/order.go +++ b/request-strategy/order.go @@ -274,7 +274,7 @@ func allocatePendingChunks(p requestablePiece, peers []*requestsPeer) { ).MustLess() } sort.Slice(peersForPiece, less) - ensureValidSortedPeersForPieceRequests(peersForPiece, less) + //ensureValidSortedPeersForPieceRequests(peersForPiece, less) } // Chunks can be preassigned several times, if peers haven't been able to update their "actual" // with "next" request state before another request strategy run occurs.