# Improve prompt caching for edit prediction \(\#23061\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f2ab00cec7545ffb7d8d75e4ccab74d5fccccf9b

Requested commit: f2ab00cec7545ffb7d8d75e4ccab74d5fccccf9b

Commit: f2ab00cec7545ffb7d8d75e4ccab74d5fccccf9b

Tree: 702db62298d96d172d673c31ccb37547ce0ebd9c

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Improve prompt caching for edit prediction (#23061)

This is achieved by halving the number of events instead of popping the
front.

Release Notes:

- N/A

Co-authored-by: Thorsten <thorsten@zed.dev>
```

## Parents

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

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