GNU bug report logs - #61285
(Sometimes very) slow font-lock after %w in ruby-ts-mode

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Sun, 5 Feb 2023 00:40:02 UTC

Severity: normal

Full log


Message #17 received at 61285 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 61285 <at> debbugs.gnu.org
Subject: Re: bug#61285: (Sometimes very) slow font-lock after %w in
 ruby-ts-mode
Date: Tue, 21 Feb 2023 05:12:17 +0200
On 06/02/2023 05:20, Dmitry Gutov wrote:
> On 06/02/2023 03:03, Dmitry Gutov wrote:
>> And for associations.rb, the query times are 0.004322s vs 1.083029s.
> 
> Similarly, using tree-sitter-cli,
> 
>    time tree-sitter query associations-query.scm associations.rb
> 
> with a simple query also reports ~1.3s here.

Looks like this got fixed in 
https://github.com/tree-sitter/tree-sitter/commit/0b817a609f7cd3d7309a81dbfe96287c6945a085, 
just a week ago.

And further improved (to the point where the delay seems entirely gone) 
in https://github.com/tree-sitter/tree-sitter/pull/2085.

Too bad it'll be a while until it makes in into popular distros.




This bug report was last modified 2 years and 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.