Files
neovim/runtime/lua/vim
Jaehwang Jung c0cb1e8e94 perf(treesitter): filter out trees outside the visible range early
Problem:
Treesitter highlighter's on_line was iterating all the parsed trees,
which can be quite a lot when injection is used. This may slow down
scrolling and cursor movement in big files with many comment injections
(e.g., lsp/_meta/protocol.lua).

Solution:
In on_win, collect trees inside the visible range, and use them in
on_line.

NOTE:
This optimization depends on the correctness of on_win's botline_guess
parameter (i.e., it's always greater than or equal to the line numbers
passed to on_line). The documentation does not guarantee this, but I
have never noticed a problem so far.
2023-12-17 15:40:59 +00:00
..
2023-09-20 13:42:41 +01:00
2023-12-14 12:39:18 +00:00
2023-09-14 08:23:01 -05:00
2023-09-14 08:23:01 -05:00
2023-09-20 13:42:41 +01:00
2023-12-12 14:27:24 -06:00
2023-09-23 23:46:45 +01:00
2023-09-04 22:42:47 +02:00
2023-09-23 23:46:45 +01:00
2023-09-20 04:15:23 -07:00
2023-11-16 11:35:54 -06:00
2023-09-14 08:23:01 -05:00
2023-09-23 23:46:45 +01:00