We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49ef16d + f55ed25 commit b30ca37Copy full SHA for b30ca37
crates/subspace-farmer/src/commitments.rs
@@ -22,8 +22,8 @@ use tracing::trace;
22
/// Number of pieces to read at once during commitments creation (16MiB)
23
const PLOT_READ_BATCH_SIZE: u64 = (16 * 1024 * 1024 / PIECE_SIZE) as u64;
24
const PIECE_OFFSET_SIZE: usize = mem::size_of::<PieceOffset>();
25
-/// Number of commitments to store in memory before writing as a batch to disk (16MiB)
26
-const TAGS_WRITE_BATCH_SIZE: usize = 16 * 1024 * 1024 / (TAG_SIZE + PIECE_OFFSET_SIZE);
+/// Number of commitments to store in memory before writing as a batch to disk (4MiB)
+const TAGS_WRITE_BATCH_SIZE: usize = 4 * 1024 * 1024 / (TAG_SIZE + PIECE_OFFSET_SIZE);
27
28
#[derive(Debug, Error)]
29
pub enum CommitmentError {
0 commit comments