Skip to content

Commit 714c254

Browse files
committed
improve compaction config
1 parent d179f4f commit 714c254

File tree

2 files changed

+3
-3
lines changed
  • turbopack/crates
    • turbo-persistence/src/compaction
    • turbo-tasks-backend/src/database/turbo

2 files changed

+3
-3
lines changed

turbopack/crates/turbo-persistence/src/compaction/selector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ impl Default for CompactConfig {
136136
optimal_merge_count: 8,
137137
max_merge_count: 32,
138138
max_merge_bytes: 500 * MB,
139-
min_merge_duplication_bytes: MB,
140-
optimal_merge_duplication_bytes: 10 * MB,
139+
min_merge_duplication_bytes: 50 * MB,
140+
optimal_merge_duplication_bytes: 100 * MB,
141141
max_merge_segment_count: 8,
142142
}
143143
}

turbopack/crates/turbo-tasks-backend/src/database/turbo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const COMPACT_CONFIG: CompactConfig = CompactConfig {
2222
optimal_merge_count: 8,
2323
max_merge_count: 64,
2424
max_merge_bytes: 512 * MB,
25-
min_merge_duplication_bytes: MB,
25+
min_merge_duplication_bytes: 50 * MB,
2626
optimal_merge_duplication_bytes: 100 * MB,
2727
max_merge_segment_count: 16,
2828
};

0 commit comments

Comments
 (0)