Reduce amount of foreground tasks spawned on multibuffer/editor updates (#41479)
When doing a project wide search in zed on windows for `hang`, zed starts to freeze for a couple seconds ultimately starting to error with `Not enough quota is available to process this command.` when dispatching windows messages. The cause for this is that we simply overload the windows message pump due to the sheer amount of foreground tasks we spawn when we populate the project search. This PR is an attempt at reducing this. Release Notes: - Reduced hangs and stutters in large project file searches
This commit is contained in:
@@ -9171,7 +9171,9 @@ async fn test_odd_events_for_ignored_dirs(
|
||||
repository_updates.lock().drain(..).collect::<Vec<_>>(),
|
||||
vec![
|
||||
RepositoryEvent::MergeHeadsChanged,
|
||||
RepositoryEvent::BranchChanged
|
||||
RepositoryEvent::BranchChanged,
|
||||
RepositoryEvent::StatusesChanged { full_scan: false },
|
||||
RepositoryEvent::StatusesChanged { full_scan: false },
|
||||
],
|
||||
"Initial worktree scan should produce a repo update event"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user