You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(perf): pre-compute conceal information a single time per parse cycle
## Details
Our current logic for figuring out what is concealed relies on calling the
treesitter get_captures_at_pos API repeatedly. Under the hood this call
is doing lots of repeated work iterating over the same queries.
Instead store the concealed nodes for a buffer in some table. Then use
this much smaller subset of nodes when computing concealed widths.
Depending on the concents of a buffer this improves performance
somewhere between 3x & 10x, nice!
0 commit comments