# edit predictions: Cache settings across renders \(\#24581\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0af048a7cfa94969076eca68718ca041b9a0802c

Requested commit: 0af048a7cfa94969076eca68718ca041b9a0802c

Commit: 0af048a7cfa94969076eca68718ca041b9a0802c

Tree: fdd9559c56dd43bacc683e40f19f8f10b4e75b09

Author: Agus Zubiaga

Committer: GitHub

## Message

```
edit predictions: Cache settings across renders (#24581)

We were reading edit prediction settings too often, causing frames to be
dropped. We'll now cache them and update them from
`update_visible_inline_completion`.

Release Notes:

- N/A
```

## Parents

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

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