# Wrap AnyView.cached_style in an Rc to make the struct much smaller \(\#24363\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1f2205d75ccbb2d2c53e4484317f7425755b5d8b

Requested commit: 1f2205d75ccbb2d2c53e4484317f7425755b5d8b

Commit: 1f2205d75ccbb2d2c53e4484317f7425755b5d8b

Tree: caf8fb12659876e3c26546f26990e743c3479fd2

Author: Michael Sloan

Committer: GitHub

## Message

```
Wrap AnyView.cached_style in an Rc to make the struct much smaller (#24363)

Byte size before was 672, now is 56. The `cached` method is only used in
two places, so this was a lot of extra bytes being shuffled around for
every `AnyView` not using this.

Release Notes:

- N/A
```

## Parents

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

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