Hacker News new | ask | show | jobs
by yosef123 524 days ago
Strange, this is the first time hearing Treesitter is slow. From experience, Treesitter has been incredibly fast for me (when running its core functions). I’m not discrediting your observation, but it might be something else in the pipeline.
1 comments

TS can be slow in some situations. https://github.com/tree-sitter/tree-sitter-julia/raw/refs/he... open this file with and without treesitter . And neovim will slow to a crawl with TS on. But the traditional regex highlighter can handle it fine. (a file such as the link posted above typically is never meant ot be opened since its machine generated , this is just to show you TS can be slow on large files)

TS is faster in other situations. for example with TS highlighting enabled entering "(" in the buffer is definitly faster in a julia file. (you can test this by holding down "(" in a .jl file and see the difference between TS enabled and only regex highlighting).