zed/crates/text
Marco Mihai Condrache 9b0cb4ec20
text: Store fragment's deletions on stack (#49726)
Helps #38927

- In the common case, each fragment has at most one deletion, so we can
skip the heap allocation
- SmallVec is smaller than an empty HashSet
- Makes cloning cheaper
- From my analysis of the code it's not possible to have duplicate ticks
(I may be wrong tho)

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A
2026-02-20 16:29:09 +00:00
..
src text: Store fragment's deletions on stack (#49726) 2026-02-20 16:29:09 +00:00
Cargo.toml Revert "sum_tree: Replace rayon with futures (#41586) (#41846) 2025-11-03 19:25:15 +00:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00