]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Disable ensureValidSortedPeersForPieceRequests
authorMatt Joiner <anacrolix@gmail.com>
Fri, 10 Sep 2021 12:13:39 +0000 (22:13 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 10 Sep 2021 13:07:10 +0000 (23:07 +1000)
Should approximately half the contribution of the parent function to overhead.

request-strategy/order.go

index f722e388c0b81cfd7576cbcc6ab3bae75b2817d0..41f5902d026504517cae5c9648e52568f669100e 100644 (file)
@@ -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.