Wez Furlong 7de7bf6b9e optimize render for blanks-after-clusters
In the situation where we have a full screen terminal (eg: 500 cells
wide), but very little output (eg: only 10's of columns on the left are
NOT blank), we would previously spend a non-trivial amount of time
calculating fg/bg colors for the blanks that trailed the actual
clusters; the calculation for each row was:

  O(trailing-blanks * full cell color compute cost)

which was around 30us per row.  For large numbers of rows this could
add up to >10ms per frame.

This commit changes the logic to run in two phases:

 * O(selection-width) with simple fg/bg color updates for the selection
   range

 * O(1) full cell color compute cost for the cursor if the cursor
   is somehow in the trailing blank region and not already handled
   by the earlier clustering logic.

With the sequence of recent commits, the frame time for the large
terminal case has been reduced from ~22ms to ~7ms, which is approx 3x
improvement.

refs: #740
2021-04-29 10:08:51 -07:00
2021-04-22 00:04:48 -07:00
2019-06-08 21:28:11 -07:00
2021-03-26 09:01:54 -07:00
2021-04-25 16:27:39 -07:00
2021-03-28 13:57:29 -07:00
2021-04-27 06:23:19 -07:00
2021-03-25 10:05:34 -07:00
2021-04-25 16:27:39 -07:00
2020-12-29 09:24:34 -08:00
2020-10-03 11:15:57 -07:00
2021-04-14 13:04:23 -07:00
2021-04-28 08:25:07 -07:00
2021-04-14 13:04:23 -07:00
2021-04-12 09:44:27 -07:00
2021-04-28 08:25:07 -07:00
2021-04-24 19:25:51 -07:00
2021-02-03 21:56:30 -08:00
2021-04-27 21:48:15 -07:00
2021-03-20 20:14:17 -07:00
2019-03-22 20:41:50 -07:00

Wez's Terminal

WezTerm Icon A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

User facing docs and guide at: https://wezfurlong.org/wezterm/

Screenshot

Screenshot of wezterm on macOS, running vim

Installation

https://wezfurlong.org/wezterm/installation.html

Getting help

This is a spare time project, so please bear with me. There are a couple of channels for support:

The GitHub Discussions and Element/Gitter rooms are better suited to questions than it is to bug reports, but don't be afraid to use whichever you are most comfortable using and we'll work it out.

S
Description
The agentic terminal: a WezTerm fork with LLeMbas built in
Readme MIT
316 MiB
0 Stars 2 Watchers 0 Forks
Languages
Rust 97.7%
Python 1%
Shell 0.9%
Nix 0.2%