|
From: | Jostein Kjønigsen |
Subject: | Re: Tree-sitter integration on feature/tree-sitter (severe performance issues together with linum-mode) |
Date: | Fri, 19 Aug 2022 08:01:27 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 |
On 18.08.2022 11:44, Yuan Fu wrote:
Thanks for the reply and thanks for looking into this. I can confirm that by compiling the query like you suggested, and replacing linum-mode with nlinum-mode, I'm not experiencing any performance issues any more! To avoid issues like this... Should perhaps the function treesit-query-capture (in treesit.c) emit a warning/message when encountering non-compiled queries? That way writing more performant major-modes would be more self-explanatory, resulting in a better, faster Emacs for everyone.
--
Vennlig hilsen Jostein Kjønigsen jostein@kjonigsen.net 🍵 jostein@gmail.com https://jostein.kjønigsen.no |
[Prev in Thread] | Current Thread | [Next in Thread] |