Skip to content

Commit 3779198

Browse files
committed
Raise REPLAY_EVENT_COUNT_LIMIT 1M→10M
It was doing full rescans far too often. This should lead to better UX.
1 parent b74eb21 commit 3779198

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src-tauri/src/indexing/event_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const MAX_PENDING_RESCANS: usize = 1_000;
4747
/// If the number of events processed during replay exceeds this threshold,
4848
/// abort replay and fall back to a full scan. Safety net for scenarios where
4949
/// FDA was toggled and the app suddenly sees millions of previously hidden paths.
50-
const REPLAY_EVENT_COUNT_LIMIT: u64 = 1_000_000;
50+
const REPLAY_EVENT_COUNT_LIMIT: u64 = 10_000_000;
5151

5252
/// Replay events are deduplicated by normalized path in batches of this
5353
/// size before processing. Dramatically reduces CPU when the FSEvents

0 commit comments

Comments
 (0)