ZIm/crates/gpui/src/text_system
Alisina Bahadori 925464cfc6
Improve terminal rendering performance (#33345)
Closes #18263

Improvements:

• **Batch text rendering** - Combine adjacent cells with identical
styling into single text runs to reduce draw calls
• **Throttle hyperlink searches** - Limit hyperlink detection to every
100ms or when mouse moves >5px to reduce CPU usage
• **Pre-allocate collections** - Use `Vec::with_capacity()` for cells,
runs, and regions to minimize reallocations
• **Optimize background regions** - Merge adjacent background rectangles
to reduce number of draw operations
• **Cache selection text** - Only compute terminal selection string when
selection exists

Release Notes:

- Improved terminal rendering performance.

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
2025-07-08 09:05:01 -06:00
..
font_fallbacks.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
font_features.rs Warn about unknown fields when editing settings json (#33678) 2025-06-30 23:34:25 +00:00
line.rs gpui: Fix markdown wrapped background not correctly rendering (#29571) 2025-04-29 04:48:24 +05:30
line_layout.rs Improve terminal rendering performance (#33345) 2025-07-08 09:05:01 -06:00
line_wrapper.rs Add initial element inspector for Zed development (#31315) 2025-05-23 23:08:59 +00:00