# Compute scrollbar markers asynchronously \(\#10080\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3a0d3cee874392321e9e9fb66135dc9dd9dc82c2

Requested commit: 3a0d3cee874392321e9e9fb66135dc9dd9dc82c2

Commit: 3a0d3cee874392321e9e9fb66135dc9dd9dc82c2

Tree: 425f88540017080e6315e02a1c6f37e2a7d447b2

Author: Thorsten Ball

Committer: GitHub

## Message

```
Compute scrollbar markers asynchronously (#10080)

Refs #9647
Fixes https://github.com/zed-industries/zed/issues/9792

This pull request moves the computation of scrollbar markers off the
main thread, to prevent them from grinding the editor to a halt when we
have a lot of them (e.g., when there are lots of search results on a
large file). With these changes we also avoid generating multiple quads
for adjacent markers, thus fixing an issue where we stop drawing other
primitives because we've drawn too many quads in the scrollbar.

Release Notes:

- Improved editor performance when displaying lots of search results,
diagnostics, or symbol highlights in the scrollbar
([#9792](https://github.com/zed-industries/zed/issues/9792)).

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Nathan <nathan@zed.dev>
```

## Parents

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

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