# editor: Speed up \`colorize_brackets\` slightly in large multibuffers \(\#43713\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b89bcbead6b95669863a1e571c23763d8769381b

Requested commit: b89bcbead6b95669863a1e571c23763d8769381b

Commit: b89bcbead6b95669863a1e571c23763d8769381b

Tree: 3414e3d4173e6c8c8ac9c7c9ec9592bd64e9c35c

Author: Lukas Wirth

Committer: GitHub

## Message

```
editor: Speed up `colorize_brackets` slightly in large multibuffers (#43713)

There is still room for improvement here as `anchor(s)_in_excerpt` is
generally a bad API here due to it reseeking the entire excerpt tree
from the start on every call which we don't really need. But this at
least cuts the seeks down by a factor of 4 for now.

Release Notes:

- Improved performance of bracket colorization in large multibuffers
```

## Parents

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

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