stsewd / tree-sitter-comment

Tree-sitter grammar for comment tags like TODO, FIXME(user).

Home Page:https://stsewd.dev/tree-sitter-comment/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heavy performance regression for block-comments

ttytm opened this issue · comments

Using the comment parser with block comments results in heavy performance regressions. E.g. when scrolling (<C-d> / <C-u>) the commented section.

I'm ignoring the comment parser in ts_config for the last 6 months or so to not experience this issue. But re-testing it, it's still present.

-- List of parsers to ignore installing
-- "comment" results in major performance issues when using block comments.
-- ignore_install = { "comment" },

It would be great to have it solved and to be able to use this parser unimpaired.

It's probably a global issue, but during a short re-test the regression is definitively present in rust, lua.

Hi, this is a neovim problem neovim/neovim#22426, also make sure you are using the nightly version of neovim.

Thanks for the quick response and referencing the related issue, wasn't aware about this!

Yep, nightly all the way :shipit: 👍

Closing this, since isn't related to the grammar itself, but neovim.