# editor: Reduce allocations during editor prepaint \(\#61290\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 04c247d1caddf7ded09e8a99e77267426e7d4598

Requested commit: 04c247d1caddf7ded09e8a99e77267426e7d4598

Commit: 04c247d1caddf7ded09e8a99e77267426e7d4598

Tree: 07a09dbbfdfdea11f13bad8864dfdb7f45fc4141

Author: tidely

Committer: GitHub

## Message

```
editor: Reduce allocations during editor prepaint (#61290)

Found some unnecessary allocations and an `.unwrap()` while working on a
separate issue. The PR makes no behavior changes and should be trivial
to review.

## Testing

All tests pass. These changes are not expected to change any behavior.

None of the changes are interleaving, so it should be easy to review
top-down. Reasoning for each change can be read from individual commit
messages.

Release Notes:

- N/A or Added/Fixed/Improved ...
```

## Parents

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

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