# Reduce amount of foreground tasks spawned on multibuffer/editor updates \(\#41479\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ac3b232dda334199c800a382a809badef52d7f19)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ac3b232dda334199c800a382a809badef52d7f19

Requested commit: ac3b232dda334199c800a382a809badef52d7f19

Commit: ac3b232dda334199c800a382a809badef52d7f19

Tree: c11beb1adcdc99e88ee4a66bf291259924187f0a

Author: Lukas Wirth

Committer: GitHub

## Message

```
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
```

## Parents

- [743180342a57892417dbbcfc6e6a0232dbe966e2](https://git.cafe/gitcafe/zed/commit/743180342a57892417dbbcfc6e6a0232dbe966e2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ac3b232dda334199c800a382a809badef52d7f19?format=markdown)
