Files
neovim/runtime/doc
Riley Bruins d9ee0d2984 perf(treesitter): don't fetch parser for each fold line
**Problem:** The treesitter `foldexpr` calls `get_parser()` for each
line in the buffer when calculating folds. This can be incredibly slow
for buffers where a parser cannot be found (because the result is not
cached), and exponentially more so when the user has many
`runtimepath`s.

**Solution:** Only fetch the parser when it is needed; that is, only
when initializing fold data for a buffer.

Co-authored-by: Jongwook Choi <wookayin@gmail.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2025-01-07 16:43:45 +01:00
..
2025-01-01 12:29:51 -08:00
2025-01-03 08:29:36 -08:00
2025-01-01 12:29:51 -08:00
2025-01-01 12:29:51 -08:00
2025-01-05 17:10:16 -08:00
2025-01-01 12:29:51 -08:00
2025-01-01 12:29:51 -08:00
2025-01-05 17:10:16 -08:00
2025-01-03 08:29:36 -08:00
2025-01-03 08:29:36 -08:00
2025-01-05 17:10:16 -08:00