# Fix editor rendering slowness with large folds \(\#31569\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 97579662e6a62ec7532f077055a52413ab2e07de

Requested commit: 97579662e6a62ec7532f077055a52413ab2e07de

Commit: 97579662e6a62ec7532f077055a52413ab2e07de

Tree: fe6e42ba95753ac75dd34459b5ca97b33d855104

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix editor rendering slowness with large folds (#31569)

Closes https://github.com/zed-industries/zed/issues/31565

* Looking up settings on every row was very slow in the case of large
folds, especially if there was an `.editorconfig` file with numerous
glob patterns
* Checking whether each indent guide was within a fold was very slow,
when a fold spanned many indent guides.

Release Notes:

- Fixed slowness that could happen when editing in the presence of large
folds.
```

## Parents

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

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