Skip to content

Commit 2c3e9d8

Browse files
authored
Turbopack: increase time before persisting (#82403)
### What? Decrease the frequency of persisting since this is very expensive.
1 parent 1af1a28 commit 2c3e9d8

File tree

1 file changed

+2
-2
lines changed
  • turbopack/crates/turbo-tasks-backend/src/backend

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,8 +2124,8 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
21242124
let last_snapshot = self.last_snapshot.load(Ordering::Relaxed);
21252125
let mut last_snapshot = self.start_time + Duration::from_millis(last_snapshot);
21262126
loop {
2127-
const FIRST_SNAPSHOT_WAIT: Duration = Duration::from_secs(60);
2128-
const SNAPSHOT_INTERVAL: Duration = Duration::from_secs(30);
2127+
const FIRST_SNAPSHOT_WAIT: Duration = Duration::from_secs(300);
2128+
const SNAPSHOT_INTERVAL: Duration = Duration::from_secs(120);
21292129
const IDLE_TIMEOUT: Duration = Duration::from_secs(2);
21302130

21312131
let time = if id == BACKEND_JOB_INITIAL_SNAPSHOT {

0 commit comments

Comments
 (0)