72674f5d282dae16fb63d59314149a6e1326ced0
The clustered line storage impl of get_cell() is O(column-index) as cells have to be iterated in order. The render pass was calling it 3 times to resolve information about the cursor; reduce that to just once. It was also calling it once per cell to determine whether the cell needed to be replaced with a custom glyph if custom block glyphs were enabled, making it accidentally quadratic! While it wasn't especially expensive, it did show up in profiling, so this commit removes that call: we can cache the block glyph key in the shaper info which is a better place for it anyway, so that's what we do. Similarly, there was some extraneous work to call get_cell when computing some shaper info; remove that too! That one might be slightly contentious: the is-followed-by-space logic used to check the successor cell by index to see if it was a space, but now looks at the successor shaped glyph to see if it was a space. That might actually be a better choice, but it may have some ripple effects.
Wez's Terminal
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 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:
- You can use the GitHub issue tracker to see if someone else has a similar issue, or to file a new one.
- Start or join a thread in our GitHub Discussions; if you have general questions or want to chat with other wezterm users, you're welcome here!
- There is a Matrix room via Element.io for (potentially!) real time discussions.
The GitHub Discussions and Element/Gitter rooms are better suited for questions than bug reports, but don't be afraid to use whichever you are most comfortable using and we'll work it out.
Supporting the Project
If you use and like WezTerm, please consider sponsoring it: your support helps to cover the fees required to maintain the project and to validate the time spent working on it!
Description
The agentic terminal: a WezTerm fork with LLeMbas built in
316 MiB
0 Stars
2 Watchers
0 Forks
Languages
Rust
97.7%
Python
1%
Shell
0.9%
Nix
0.2%
