# gpui: Arc \`GlobalElementId\` \(\#40979\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c529a066bf2ce40842b972532c36acb8b8d9f084

Requested commit: c529a066bf2ce40842b972532c36acb8b8d9f084

Commit: c529a066bf2ce40842b972532c36acb8b8d9f084

Tree: 9926193fc0373e6b19beeeca994fbaaced649612

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui: Arc `GlobalElementId` (#40979)

This shrinks it from roughly a ~kilobyte to 8 byte, removing a bunch of
memmoves emitted by the compiler. Also `Arc`'s it instead of boxing as
we do clone it a couple times here and there, making that also a fair
bit cheaper

Release Notes:

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

## Parents

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

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