From d16547c76716d008f0518efd2446a105e8322805 Mon Sep 17 00:00:00 2001 From: Felipe Silveira Date: Tue, 3 Sep 2024 19:28:09 +0100 Subject: [PATCH] perf(wezterm): cache settings for performance --- CHANGELOG.md | 3 +++ wezterm/config/general.lua | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3b773d..f2a2491 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ### [2024-09-03] + * [[9868106]](https://github.com/silveiralexf/.dotfiles/commit/986810630120ed5146bc87837f9be71d60941aa9) chore(nvim): add hidden search on telescope and exclude new patterns (silveiralexf@gmail.com) + + * [[5b62350]](https://github.com/silveiralexf/.dotfiles/commit/5b62350e6c0218b87191191577c69606fe27585e) test(nvim): treesitter tweaks to validate (silveiralexf@gmail.com) diff --git a/wezterm/config/general.lua b/wezterm/config/general.lua index 860d466..e7d1705 100644 --- a/wezterm/config/general.lua +++ b/wezterm/config/general.lua @@ -5,6 +5,23 @@ return { exit_behavior_messaging = 'Verbose', status_update_interval = 1000, + -- This should be set to at least the sum of the number of lines in the panes in a tab. + -- eg: if you have an 80x24 terminal split left/right then you should set this to at least 2x24 = 48 + -- Setting it smaller than that will harm performance + line_quad_cache_size = 1024, + + -- Should also be set >= number of lines as above. + -- Values are relatively small, may not need adjustment. + line_state_cache_size = 1024, + + -- Should also be set >= number of lines as above. + -- Values are relatively small, may not need adjustment. + line_to_ele_shape_cache_size = 1024, + + -- should be >= the number of different attributed runs on the screen. + -- hard to suggest a min size: try reducing until you notice performance getting bad. + shape_cache_size = 1024, + hyperlink_rules = { -- Matches: a URL in parenthesis: (URL) {