Skip to content

Commit

Permalink
perf(wezterm): cache settings for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
silveiralexf committed Sep 3, 2024
1 parent 9868106 commit d16547c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
17 changes: 17 additions & 0 deletions wezterm/config/general.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit d16547c

Please sign in to comment.