# Fix performance regression in multibuffer diff syncing \(\#26137\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ad9c508a723a45e33fc2cd4921fa207a191edc4b

Requested commit: ad9c508a723a45e33fc2cd4921fa207a191edc4b

Commit: ad9c508a723a45e33fc2cd4921fa207a191edc4b

Tree: c68edca287cf3773cc258d6b5eabaeb18ed30d70

Author: Cole Miller

Committer: GitHub

## Message

```
Fix performance regression in multibuffer diff syncing (#26137)

This fixes a performance problem introduced in #25906 and caused by
calling `BufferDiff::snapshot` too frequently.

Release Notes:

- Fixed a performance regression related to buffer diffs

Co-authored-by: Conrad <conrad@zed.dev>
```

## Parents

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

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