Disable ensureValidSortedPeersForPieceRequests

Should approximately half the contribution of the parent function to overhead.
This commit is contained in:
Matt Joiner 2021-09-10 22:13:39 +10:00
parent 016bf1b07c
commit e9193968a3
1 changed files with 1 additions and 1 deletions

View 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.