htmx-lsp icon indicating copy to clipboard operation
htmx-lsp copied to clipboard

Tree-sitter perf

Open WillLillis opened this issue 2 years ago • 2 comments

Regarding the "Gallons of perf" todo comment in htmx-lsp/lsp/src/tree-sitter.rs, I wanted to ask about taking an initial stab at some improvements regarding tree-sitter and the LSP's in-memory copy of the buffer(s) being edited. I've contributed a decent amount to asm-lsp (another LSP implemented in Rust), and was able to take advantage of both the LSP's incremental edits (as opposed to sending the entire document over with each change) as well as incremental parsing on the tree-sitter tree of the buffer in that project. If this sounds like it would be helpful, I'd love to spend some time implementing something similar here as a starting point :).

WillLillis avatar Jan 16 '24 22:01 WillLillis

@ThePrimeagen ?..

savchenko avatar Jun 05 '24 13:06 savchenko