# search: Improve performance of \`replace_all\` \(\#13654\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 076138375211d24e66c7642d4c845a01b81c5421

Requested commit: 076138375211d24e66c7642d4c845a01b81c5421

Commit: 076138375211d24e66c7642d4c845a01b81c5421

Tree: 56ca6821490ac75174dff37c9e4f8e0a41220502

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
search: Improve performance of `replace_all` (#13654)

Previously replace_all amounted to what could be achieved by repeatedly
mashing "Replace" button, which had a bunch of overhead related to
buffer state syncing. This commit gets rid of the automated button
mashing, processing all of the replacements in one go.

Fixes #13455



Release Notes:

- Improved performance of "replace all" in buffer search and project
search
```

## Parents

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

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