From e9193968a3f67d1e6fc9af777c13b0a1e8a0be0c Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 10 Sep 2021 22:13:39 +1000 Subject: [PATCH] Disable ensureValidSortedPeersForPieceRequests Should approximately half the contribution of the parent function to overhead. --- request-strategy/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.48.1