# Introduce an \`Arena\` to allocate and deallocate frame-related structs more cheaply \(\#3689\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4e544545d1b6f833b5c65c079a429850944e32eb

Requested commit: 4e544545d1b6f833b5c65c079a429850944e32eb

Commit: 4e544545d1b6f833b5c65c079a429850944e32eb

Tree: c2889402dd6c5726f5d84d31e93c75f69df2ba48

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Introduce an `Arena` to allocate and deallocate frame-related structs more cheaply (#3689)

Picture worth a thousand words:


![before-after](https://github.com/zed-industries/zed/assets/482957/0aa92baf-f1cd-485e-a234-6d8f8b63a79a)

Note how having an area makes a substantial amount of frames between
0.5ms and 1ms faster (15-20% faster frames).

Release Notes:

- N/A
```

## Parents

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

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

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