ZIm/crates/terminal/src
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
..
mappings Fix Shift+Enter to send newline instead of carriage return in terminal (#33859) 2025-07-03 15:25:11 -07:00
pty_info.rs Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
terminal.rs Improve terminal rendering performance (#33345) 2025-07-08 09:05:01 -06:00
terminal_hyperlinks.rs chore: Bump Rust version to 1.88 (#33439) 2025-06-26 20:54:19 +02:00
terminal_settings.rs Automatically adjust ANSI color contrast (#34033) 2025-07-07 22:39:11 +00:00