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 #20 received at 61285 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
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 00:14:03 -0800

> On Feb 20, 2023, at 7:12 PM, Dmitry Gutov <dgutov <at> yandex.ru> wrote:
> 
> 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.

Great news!

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

Looks fantastic, this might render one of the reason for using the “fast mode” obsolete. 
> 
> Too bad it'll be a while until it makes in into popular distros.

See you in Emacs 30 ;-)

Yuan



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.