# editor: Remove redundant allocation when merging highlight ranges \(\#57034\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bfe914beec96ca0c509f6ffb03f74c5a737b4620

Requested commit: bfe914beec96ca0c509f6ffb03f74c5a737b4620

Commit: bfe914beec96ca0c509f6ffb03f74c5a737b4620

Tree: 7de646df95fe4fc392944d30edab44a5c21e6479

Author: Xiaobo Liu

Committer: GitHub

## Message

```
editor: Remove redundant allocation when merging highlight ranges (#57034)

Reduce one Vec clone + collect allocation per frame

Release Notes:

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

---------

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
```

## Parents

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

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