# gpui: Clear the element arena after presenting the frame \(\#33338\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9427526a4191430f828129b7255353050d7899fc

Requested commit: 9427526a4191430f828129b7255353050d7899fc

Commit: 9427526a4191430f828129b7255353050d7899fc

Tree: 2ca3374012c6c37b1e3ea17c3363fd7ab6311616

Author: Michael Sloan

Committer: GitHub

## Message

```
gpui: Clear the element arena after presenting the frame (#33338)

This is an easy way to shave some microseconds off the critical path for
frame rendering. On my machine this reduces typical frame rendering
latency by ~100 microseconds, probably quite a bit more on slower
machines.

Here is how long it typically takes to drop elements from the arena,
from a fairly brief run:


![image](https://github.com/user-attachments/assets/65cfd911-eccf-4393-887d-8cad2cd27148)

Release Notes:

- N/A
```

## Parents

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

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