# Reduce segment cloning when rendering messages \(\#33340\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4516b099e712af9dddb2d4a373a6500a32dd4f6c

Requested commit: 4516b099e712af9dddb2d4a373a6500a32dd4f6c

Commit: 4516b099e712af9dddb2d4a373a6500a32dd4f6c

Tree: 6c6f588ff2b75b75c8b79d2e1fb3af2437e3cd66

Author: Richard Feldman

Committer: GitHub

## Message

```
Reduce segment cloning when rendering messages (#33340)

While working on retries, I discovered some opportunities to reduce
cloning of message segments. These segments have full `String`s (not
`SharedString`s), so cloning them means copying cloning all the bytes of
all the strings in the message, which would be nice to avoid!

Release Notes:

- N/A
```

## Parents

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

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