# project search: Reduce hangs on main thread \(\#39857\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ba2337ffb9ac12235224974295665d23bf9a36d6

Requested commit: ba2337ffb9ac12235224974295665d23bf9a36d6

Commit: ba2337ffb9ac12235224974295665d23bf9a36d6

Tree: bcc480e20435353daa7cf685fab01d9f56f93d49

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
project search: Reduce hangs on main thread (#39857)

This takes the idea that @RemcoSmitsDev started on in
https://github.com/zed-industries/zed/pull/39354. We did away with
grabbing a snapshot of the display map when buffer coordinates were
sufficient.
Closes #37267

Release Notes:

- Reduced micro-stutters in project search with large multi-buffer
contents.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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