# Use \`Vec\` instead of \`SmallVec\` for \`glyphs\` field of \`ShapedRun\` \(\#30664\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 25cc05b45c0bedf97bae6dd3e45405c4403444ff

Requested commit: 25cc05b45c0bedf97bae6dd3e45405c4403444ff

Commit: 25cc05b45c0bedf97bae6dd3e45405c4403444ff

Tree: 58cb54a9474f535f085877653472e70a53d6827d

Author: Michael Sloan

Committer: GitHub

## Message

```
Use `Vec` instead of `SmallVec` for `glyphs` field of `ShapedRun` (#30664)

This glyphs field is usually larger than 8 elements, and SmallVec is not
efficient when it cannot store the value inline.

This change also adds precise glyphs run preallocation in some places
`ShapedRun` is constructed.

Release Notes:

- N/A
```

## Parents

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

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