Files
neovim/runtime
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-12-16 05:28:57 +08:00
2023-12-16 15:43:26 +01:00
2023-09-13 17:23:45 +02:00
2023-12-16 15:57:22 +01:00
2023-12-16 15:57:22 +01:00
2023-11-05 21:56:56 +01:00
2023-08-23 20:36:16 +01:00
2023-12-16 15:57:22 +01:00
2022-08-20 10:04:55 +02:00
2023-12-16 21:06:28 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-24 11:33:06 +09:00
2023-08-13 13:25:10 +01:00
2023-08-31 10:58:54 +02:00