Unverified Commit 2c3e9d83 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: increase time before persisting (#82403)

### What?

Decrease the frequency of persisting since this is very expensive.
parent 1af1a28a
...@@ -2124,8 +2124,8 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> { ...@@ -2124,8 +2124,8 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
let last_snapshot = self.last_snapshot.load(Ordering::Relaxed); let last_snapshot = self.last_snapshot.load(Ordering::Relaxed);
let mut last_snapshot = self.start_time + Duration::from_millis(last_snapshot); let mut last_snapshot = self.start_time + Duration::from_millis(last_snapshot);
loop { loop {
const FIRST_SNAPSHOT_WAIT: Duration = Duration::from_secs(60); const FIRST_SNAPSHOT_WAIT: Duration = Duration::from_secs(300);
const SNAPSHOT_INTERVAL: Duration = Duration::from_secs(30); const SNAPSHOT_INTERVAL: Duration = Duration::from_secs(120);
const IDLE_TIMEOUT: Duration = Duration::from_secs(2); const IDLE_TIMEOUT: Duration = Duration::from_secs(2);
let time = if id == BACKEND_JOB_INITIAL_SNAPSHOT { let time = if id == BACKEND_JOB_INITIAL_SNAPSHOT {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment