Wez Furlong 35ce2fe74d trim heap usage
I spent a few hours in heap profilers.  What I found was:

* Inefficient use of heap when building up runs of
  `Action::Print(char)`.
    -> Solve by adding `Action::PrintString(String)`
  and accumulating utf8 bytes rather than u32 codepoints.
* Inefficient use of heap when building Quad buffers: the default
  exponential growth of `Vec` tended to waste 40%-75% of the allocated
  capacity, and since we could keep ~1024 of these in cache, there's
  a lot of potential for waste.
   -> Solve by bounding the growth to 64 at a time.  This has similar
   characteristics to exponential growth at the default 80x24 terminal
   size.  May need to add a config option for this step size for users
   with very large terminals.
* Lazy eviction from the LFU caches. The underlying cache advisor is
  somewhat probabilistic and has a minimum cache size of 256, making
  it difficult to maintain low heap utilization.
   -> Solve by replacing it with a very simple LFU algorithm. It doesn't
   seem to hurt much at the default terminal size with the default
   cache sizes.  If we make the cache sizes smaller, its overhead is
   reduced.

Some further experimentation is needed to adjust defaults, but this
should help reduce heap usage.

refs: https://github.com/wez/wezterm/issues/2626
2022-10-22 17:10:36 -07:00
2022-10-21 21:47:09 -07:00
2022-10-04 08:55:31 -07:00
2019-06-08 21:28:11 -07:00
2022-10-21 20:53:29 -07:00
2022-05-21 21:09:11 -07:00
2022-10-21 21:47:09 -07:00
2022-10-19 20:00:13 -07:00
2022-10-19 20:00:13 -07:00
2022-08-17 07:19:12 -07:00
2022-08-21 08:51:16 -07:00
2022-10-22 17:10:36 -07:00
2022-10-04 08:55:31 -07:00
2022-10-22 17:10:36 -07:00
2022-10-22 17:10:36 -07:00
2022-08-17 07:19:12 -07:00
2022-10-04 08:55:31 -07:00
2022-10-18 08:22:51 -07:00
2022-10-22 17:10:36 -07:00
2022-10-04 08:55:31 -07:00
2022-10-08 09:45:57 -07:00
2021-02-03 21:56:30 -08:00
2022-10-22 17:10:36 -07:00
2022-10-22 17:10:36 -07:00
2022-07-29 13:18:53 -07:00
2022-10-04 09:01:12 -07:00
2022-01-16 16:04:35 -07:00
2022-09-15 06:32:16 -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:

  • 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!

Sponsor WezTerm

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%