# gpui_shared_string: Implement SharedString via smol_str \(\#54649\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 58d3a9eef4f302bdb1686a122b80f086ea2b0757

Requested commit: 58d3a9eef4f302bdb1686a122b80f086ea2b0757

Commit: 58d3a9eef4f302bdb1686a122b80f086ea2b0757

Tree: 06c0a139653bfc90f6630c5061ea2ec134878fc5

Author: Lukas Wirth

Committer: GitHub

## Message

```
gpui_shared_string: Implement SharedString via smol_str (#54649)

This reduces the size of Sharedstring from 32 bytes to 24 while also
allowing for small-string optimization, meaning strings with length < 23
bytes will not actually allocate.

Release Notes:

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

## Parents

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

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