Files
zed/crates/theme
Lukas Wirth 4a37945f3a editor: Improve colorize_bracket highlight performance (#49803)
The binary search insertion scheme in `highlight_text` works fine for
small numbers of elements but does not handle large amounts of ranges
well, as that will cause constant memcpying of the latter half of the
vec. Bracket colorization tends to have a huge amount of entries though,
so this can cause massive lags on the foreground thread. The better
approach here is to just collect all elements and re-sort them once.

Release Notes:

- Reduced mini-stutters occuring due to large amount of bracket
colorization in big buffers and agent diffs
2026-02-21 14:41:23 +00:00
..
2025-10-17 18:58:14 +00:00