Skip to content

Commit

Permalink
Increase number of concurrent batches to better handle the long tail …
Browse files Browse the repository at this point in the history
…of slow downloads
  • Loading branch information
nazar-pc committed Nov 26, 2024
1 parent c3a1f75 commit ad9bb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/subspace-farmer/src/farmer_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ where
downloading_pieces_stream
// This allows to schedule new batch while previous batches partially completed, but
// avoids excessive memory usage like when all futures are created upfront
.buffer_unordered(SYNC_CONCURRENT_BATCHES * 2)
.buffer_unordered(SYNC_CONCURRENT_BATCHES * 10)
// Simply drain everything
.for_each(|()| async {})
.await;
Expand Down

0 comments on commit ad9bb08

Please sign in to comment.