Skip to content

Commit

Permalink
add hashers to download all
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 18, 2024
1 parent e4ac702 commit 92c0e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (t *Torrent) DownloadPieces(begin, end pieceIndex) {
// there is a trade off though against memory usage (at the moment)
// as if not enough results processors are active memory buffers will
// grow leading to oom
g.SetLimit(maxInt(runtime.NumCPU()*2-2, t.cl.config.PieceHashersPerTorrent/2))
g.SetLimit(maxInt(runtime.NumCPU()*4-3, t.cl.config.PieceHashersPerTorrent/2))
defer cancel()

for i := begin; i < end; i++ {
Expand Down

0 comments on commit 92c0e1e

Please sign in to comment.