Commit 00dcd75
authored
perf(treesitter): add a few optimizations (#438)
- Remove treesitter specific memoization
- Do not query/traverse matches for the whole buffer, only for the
region defined by `g:matchup_treesitter_stopline`
- Remove generic path-like parsing of treesitter information, parse only
the necessary data
- Remove some unnecessary function calls1 parent dccb2d1 commit 00dcd75
3 files changed
Lines changed: 91 additions & 169 deletions
0 commit comments